hi
how can i Receive Message when the each connection get disconnected?
Printable View
hi
how can i Receive Message when the each connection get disconnected?
I'm not exactly sure what you mean, but calls to send() or recv() will return '0' as soon as the connection is gone.
am using IPAddress::Any when each connection is lost or disconnected I dont receive any Messages from ???????
That is correct. When the connection is gone you'll stop receiving things on it.
so what should i do
how to get message when i a connection get dissconected
I'm not sure - in what way is my answer in post #2 not suitable for you?
is there callback function Connection?
you need to implement your own handshake messages or you can try to use KEEP_ALIVE messages. The latter must be turned on via setsockopt.
KEEP_ALIVE is for tcp .
does not work with UDP
you did not mention you are working with UDP. UDP has no notion of a 'connection', so it can not be disconnected.
If you could describe your problem in detail, maybe we could help you better?
the udp is in Receive Mode then the netwok card disconnects.
now i want to get a notification.
OK, I quit.
I haven't done a lot of network programming, but I don't think this is possible. I'm assuming you're talking about the "client network card" (with your program running on the server).Quote:
Originally Posted by jan_Zoser2005
As was said, UDP is connectionless. Therefore there is no disconnect.
Viggy
As I said I want to know when the Network Card is disconnected... Not a connection!!!
See RegisterDeviceNotification
It works as I recall.