KZero Active Member Licensed User Longtime User Mar 17, 2014 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Mar 17, 2014 #2 You should use AsyncStreams and handle the Terminated and Error events. Upvote 0
KZero Active Member Licensed User Longtime User Mar 17, 2014 #3 Erel said: You should use AsyncStreams and handle the Terminated and Error events. Click to expand... 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
Erel said: You should use AsyncStreams and handle the Terminated and Error events. Click to expand... 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