how do i check for the socket’s state? wether it is still connected …pl
help
ran zhang <rzhang@vamcointernational.com> wrote:
how do i check for the socket’s state? wether it is still connected …pl
help
You can send/receive some keepalive messages over the socket, if your
application allows this.
I do not know about something better.
It depends on what kind of state you want. You can’t really querry a socket
and find out if the remote side is still actively comminicating. A
heatbeat, is the most common method of detecting if someone has dropped off
the face of the earth (client).
–
Cheers,
Adam
QNX Software Systems Ltd.
[ amallory@qnx.com ]
With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <pschon@baste.magibox.net>
“ran zhang” <rzhang@vamcointernational.com> wrote in message
news:a345tv$ic3$1@inn.qnx.com…
how do i check for the socket’s state? wether it is still connected …pl
help