Closing of Listen Socket

From: John Kd (kbabar2001_at_hotmail.com)
Date: 08/26/04


Date: Thu, 26 Aug 2004 17:42:30 +0530

Hi,
    One interesting question related to Windows Sockets

Say, i had opened one port called port number 1000, and starts listening on
to that port for connections, the socket number which i get is say 1500, now
when i get the request, i get some other socket number say 1600, but if i
had closed the socket 1500, which is the socket on which my thread was
listening, but still the other thread which had started the communication on
the 1600 socket works very well, i.e. the communication takes place nicely,
i still did not understand how the communication of socket 1600 is live,
when it main socket 1500 is closed.

Thanks & Regards,
Yash



Relevant Pages

  • socket connection problem between C++ ActiveX and C# listening port
    ... I don't know if there is discrepancy between straight C code socket ... Few years ago I wrote an ATL ActiveX and a C++ daemon running locally ... The daemon opens a port on "localhost" and listens ... and send messages to the listening daemon. ...
    (microsoft.public.pocketpc.developer)
  • Re: Socket and cycle problem
    ... listening this port countinously. ... So I need make some loop to print data from 3883 port permanent. ... the data it receives from each connection after the remote side drops ... If you were to use the socket module, then it would look something like this: ...
    (comp.lang.python)
  • Re: help need in chat client/server
    ... Im new to this network programmin and I need help with this code i ... require "socket" ... PORT = 12321 ... listening but the sending end never listens and the listening end never ...
    (comp.lang.ruby)
  • Re: Problem with socket
    ... Be aware that those port numbers are part of the IANA-assigned range. ... socket operations on sockets for which there are no handles... ... The result of using comma lists is ... you have used the completely meaningless word "crash" to describe your ...
    (microsoft.public.vc.mfc)
  • RE: call is blocked in recvfrom() and no further proceedings in Win CE
    ... In windows CE, I'm able to send a request but I'm unable to receive it. ... Create another socket & bind with server IP address. ... > My program has to send request to service through port 5070(in this port only ...
    (microsoft.public.windowsce.embedded)

Quantcast