B4J Question AStreams_Terminated & Sockets

Rich Blackmore

Member
Licensed User
Longtime User
I am using Astreams for a socket server.

I am creating a array for each new connection e.g

Sub Server_NewConnection (Successful As Boolean, NewSocket As Socket)
If Successful Then
Log("Connected")
Sockets(k) = NewSocket
k=k+1
end if
Server.Listen
End Sub

when a client disconnects from the server the AStreams_Terminated is fired but is there anyway to tell which sockets(k) is being disconnected ?

does the AStreams_Terminated not fire with additional variables to say which socket is being dropped.
 

tango

Active Member
Licensed User
Longtime User
hi erel,
how can we done this. there is video stream server and mysql server in BINGO machine. reaching the video streams to client and reaching the ball number from mysql to client is not the same time. stream reaching is slow . how can we done equal time . can we read video stream time stamp and after a late we can send mysql data to client.
 
Upvote 0
Top