Re: Detecting a dropped connection



You close your dead socket and open another one, then
attempt to connect to your server using the new socket.

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

"Daniel" <DanielV@xxxxxxxxxxxxxxxx> wrote in message
news:OkUfDn5mGHA.1204@xxxxxxxxxxxxxxxxxxxxxxx
Hey guys

Many apps have a 'reconnecting' and so on when someone loses their
connection. How do you implement something like this?

I need to be able to try and reconnect clients to the server but of course
if their conenction is lost then there clientSocket is null. So how can
you find them?

How do you implement things like this in sockets?

Thanks



.



Relevant Pages

  • Re: socket communication: socket doesnt connect
    ... Microsoft MVP, MCSD ... As far as your server code goes, ... accept the listening socket. ... Client client = new Client; ...
    (microsoft.public.vc.language)
  • Re: socket communication: socket doesnt connect
    ... Microsoft MVP, MCSD ... As far as your server code goes, ... accept the listening socket. ... overlapped sockets with an I/O Completion Port. ...
    (microsoft.public.vc.language)
  • Re: winsock2 query?
    ... Microsoft MVP, MCSD ... > I am writing a client server application. ... > server socket is created, binded & is listening for client connections. ...
    (microsoft.public.win32.programmer.networks)
  • Re: IOCP in client -- simple test code that doesnt work
    ... Microsoft MVP, MCSD ... to use it on client too. ... I had made other server samples work which were quite complex, ... A connected socket that's ...
    (microsoft.public.win32.programmer.networks)
  • Re: How can I make a PERFECT RE-USABLE SOCKET ?
    ... Microsoft MVP, MCSD ... How can I make a PERFECT RE-USABLE SOCKET? ... > There are no problem when I disconnect client from server. ...
    (microsoft.public.win32.programmer.networks)