jan_Zoser2005
July 14th, 2008, 01:21 AM
hi
how can i Receive Message when the each connection get disconnected?
how can i Receive Message when the each connection get disconnected?
|
Click to See Complete Forum and Search --> : Receive MEssage When the Connection get Dissconnected jan_Zoser2005 July 14th, 2008, 01:21 AM hi how can i Receive Message when the each connection get disconnected? Edders July 14th, 2008, 04:21 AM I'm not exactly sure what you mean, but calls to send() or recv() will return '0' as soon as the connection is gone. jan_Zoser2005 July 14th, 2008, 10:13 AM am using IPAddress::Any when each connection is lost or disconnected I dont receive any Messages from ??????? Edders July 14th, 2008, 10:46 AM That is correct. When the connection is gone you'll stop receiving things on it. jan_Zoser2005 July 14th, 2008, 11:30 AM so what should i do how to get message when i a connection get dissconected Edders July 14th, 2008, 12:16 PM I'm not sure - in what way is my answer in post #2 not suitable for you? jan_Zoser2005 July 15th, 2008, 02:24 AM is there callback function Connection? Richard.J July 15th, 2008, 09:57 AM 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. jan_Zoser2005 July 17th, 2008, 08:55 AM KEEP_ALIVE is for tcp . does not work with UDP Richard.J July 17th, 2008, 10:14 AM 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? jan_Zoser2005 July 18th, 2008, 11:37 AM the udp is in Receive Mode then the netwok card disconnects. now i want to get a notification. Richard.J July 18th, 2008, 03:03 PM OK, I quit. MrViggy July 18th, 2008, 03:16 PM the udp is in Receive Mode then the netwok card disconnects. now i want to get a notification. 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). As was said, UDP is connectionless. Therefore there is no disconnect. Viggy jan_Zoser2005 July 19th, 2008, 06:04 AM As I said I want to know when the Network Card is disconnected... Not a connection!!! DreamShore July 22nd, 2008, 07:38 PM See RegisterDeviceNotification It works as I recall. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |