lucas555 Member Licensed User Longtime User Jun 18, 2011 #1 i would like to accept more then one connection in server socket ive tried Dim ServerSocket1 As ServerSocket Dim Socket1(255) As Socket Dim InputStream1(255) As InputStream Dim OutputStream1(255) As OutputStream and then For I=0 To 254 If SOCKET1(I).Connected =True Then If InputStream1(I).BytesAvailable > 0 Then .do something end if end if next but when i compile always give me java error who can i acces an array of sockets thsk
i would like to accept more then one connection in server socket ive tried Dim ServerSocket1 As ServerSocket Dim Socket1(255) As Socket Dim InputStream1(255) As InputStream Dim OutputStream1(255) As OutputStream and then For I=0 To 254 If SOCKET1(I).Connected =True Then If InputStream1(I).BytesAvailable > 0 Then .do something end if end if next but when i compile always give me java error who can i acces an array of sockets thsk
agraham Expert Licensed User Longtime User Jun 18, 2011 #2 I don't see a compile time error with that code. What error do you see? It is always better to give some details otherwise we are guessing what the problem might be. Upvote 0
I don't see a compile time error with that code. What error do you see? It is always better to give some details otherwise we are guessing what the problem might be.
Erel B4X founder Staff member Licensed User Longtime User Jun 19, 2011 #3 I also recommend you to post some information about the program. Maybe there is a simpler way to implement it. Upvote 0
I also recommend you to post some information about the program. Maybe there is a simpler way to implement it.