Android Question Network Socket State

KZero

Active Member
Licensed User
Longtime User
Hello,

I'm using Network 1.25 Lib for TCP connection
wondering if there is event handler for "Close"
i tried
Sock_Close and Sock_Disconnected but to no avail

.Connected method returning True when i close the connection from the server side !!

so how to determine if the sock is really connected

thanks in advance
 

KZero

Active Member
Licensed User
Longtime User
You should use AsyncStreams and handle the Terminated and Error events.

awesome , now every things are handled

i was using Timer to check if there is new bytes available to read ,, NewData event in AsyncStreams make it much faster and lighter

thanks :)
 
Upvote 0
Top