Hi all,
before send any data to a socket, I need to know if the socket is valid
(maybe the server has crashed or disconnected).
What is the proper way to check if a socket is valid and connected?
Can I write something like this?
int flags;
// have I to call REALSocketPoll(socket) here?
flags = REALSocketGetEvents(socket, 0);
if (flags & socketEventError)
HandleSocketError()
else
SendData(...);
Thanks a lot for your help.
Regards,
Marco Bambini
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|