Re: Asynch Sockets over UDP: How do you Know when a socket dissconnects

Tech-Archive recommends: Speed Up your PC by fixing your registry



"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/
.



Relevant Pages

  • Re: Asynch Sockets over UDP: How do you Know when a socket dissconnects
    ... Greg Young ... MVP - C# ... while the receivers are receiving ... implement a time out where each attempt to reconnect is stalled for ...
    (microsoft.public.dotnet.languages.csharp)
  • Asynch Sockets over UDP: How do you Know when a socket dissconnects
    ... I have this application that has one sender, and multiple receivers, ... the receivers are subscribing to a multicast group to which the sender ... implement a time out where each attempt to reconnect is stalled for ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: SAT-Receiver gesucht
    ... Man löscht aus der Senderliste Sender, ... Anschließend wird die Senderliste des Receivers ... Kennt jemand einen Receiver, der sich merken kann, daß ...
    (de.rec.tv.technik)
  • SAT-Receiver gesucht
    ... Man löscht aus der Senderliste Sender, ... Anschließend wird die Senderliste des Receivers ... Kennt jemand einen Receiver, der sich merken kann, daß ...
    (de.rec.tv.technik)
  • Re: SAT-Receiver gesucht
    ... Anschließend wird die Senderliste des Receivers ... Sender da. ... Kennt jemand einen Receiver, der sich merken kann, daß ...
    (de.rec.tv.technik)