|
-
July 14th, 2008, 01:21 AM
#1
Receive MEssage When the Connection get Dissconnected
hi
how can i Receive Message when the each connection get disconnected?
-
July 14th, 2008, 04:21 AM
#2
Re: Receive MEssage When the Connection get Dissconnected
I'm not exactly sure what you mean, but calls to send() or recv() will return '0' as soon as the connection is gone.
-
July 14th, 2008, 10:13 AM
#3
Re: Receive MEssage When the Connection get Dissconnected
am using IPAddress::Any when each connection is lost or disconnected I dont receive any Messages from ???????
-
July 14th, 2008, 10:46 AM
#4
Re: Receive MEssage When the Connection get Dissconnected
That is correct. When the connection is gone you'll stop receiving things on it.
-
July 14th, 2008, 11:30 AM
#5
Re: Receive MEssage When the Connection get Dissconnected
so what should i do
how to get message when i a connection get dissconected
-
July 14th, 2008, 12:16 PM
#6
Re: Receive MEssage When the Connection get Dissconnected
I'm not sure - in what way is my answer in post #2 not suitable for you?
-
July 15th, 2008, 02:24 AM
#7
Re: Receive MEssage When the Connection get Dissconnected
is there callback function Connection?
-
July 15th, 2008, 09:57 AM
#8
Re: Receive MEssage When the Connection get Dissconnected
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.
-
July 17th, 2008, 08:55 AM
#9
Re: Receive MEssage When the Connection get Dissconnected
KEEP_ALIVE is for tcp .
does not work with UDP
-
July 17th, 2008, 10:14 AM
#10
Re: Receive MEssage When the Connection get Dissconnected
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?
-
July 18th, 2008, 11:37 AM
#11
Re: Receive MEssage When the Connection get Dissconnected
the udp is in Receive Mode then the netwok card disconnects.
now i want to get a notification.
-
July 18th, 2008, 03:03 PM
#12
Re: Receive MEssage When the Connection get Dissconnected
-
July 18th, 2008, 03:16 PM
#13
Re: Receive MEssage When the Connection get Dissconnected
 Originally Posted by jan_Zoser2005
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
-
July 19th, 2008, 06:04 AM
#14
Re: Receive MEssage When the Connection get Dissconnected
As I said I want to know when the Network Card is disconnected... Not a connection!!!
-
July 22nd, 2008, 07:38 PM
#15
Re: Receive MEssage When the Connection get Dissconnected
See RegisterDeviceNotification
It works as I recall.
Nope
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|