Re: Asynch Sockets over UDP: How do you Know when a socket dissconnects
- From: Barry Kelly <barry.j.kelly@xxxxxxxxx>
- Date: Tue, 13 Jun 2006 01:54:54 +0100
"DaTurk" <mmagdits@xxxxxxxxxxx> wrote:
I have this application that has one sender, and multiple receivers,
the receivers are subscribing to a multicast group to which the sender
is sending information synchronously, while the receivers are receiving
asynchronously. My issue, is that if the if the receiver's socket
disconnects for any reason I want to be able to detect it and attempt
to reconnect.
Although I'm uncertain what to look for. I thought the receiver would
receive 0 bytes, but this is only with TCP. I would also like to
implement a time out where each attempt to reconnect is stalled for
that amount of time before trying to reconnect. Any help would be
appreciated.
You need to send keep-alive packets of some kind. UDP is connectionless,
so there is no "connection" to detect.
-- Barry
--
http://barrkel.blogspot.com/
.
- Follow-Ups:
- References:
- Prev by Date: Re: C# coding guidelines: use "this." or not when referring to member fields/properties within the object?
- Next by Date: Re: Generating very large string in C#
- Previous by thread: Re: Asynch Sockets over UDP: How do you Know when a socket dissconnects
- Next by thread: Re: Asynch Sockets over UDP: How do you Know when a socket dissconnects
- Index(es):
Relevant Pages
|