checking for client sockets

From: JTMOBAP (mo_mail_jeremiah_at_yahoo.com)
Date: 01/27/05


Date: Thu, 27 Jan 2005 13:34:08 -0500

I know you can check for existing server sockets connected at a port by
doing a simple loop and
ServerSocket sock = new ServerSocket(i);

and checking to see if the connection had failed. Can you do something
like that with client sockets? For example, can you check to see if your
browser has a client socket set up at port 80??



Relevant Pages

  • Re: network programming: how does s.accept() work?
    ... The program you contact at Google is a server. ... so, the server will usually assign a new port, say 56399, specifically ... connections to a server remain on the same port, ... sockets is what identifies them. ...
    (comp.lang.python)
  • Re: Socket switch delay
    ... hadn't realized the bit about the completion port... ... > can come back with partial buffers from a completion io. ... > in the client and server. ... > remember changing in the server was the "non-blocking sockets" together ...
    (microsoft.public.win32.programmer.networks)
  • Re: security risk of having a long list of services in inetd
    ... for connections on certain internet sockets. ... the string 'ssh' means TCP port 22. ... But if there's no program sitting there listening on the port there's ...
    (Debian-User)
  • Re: Router/Firewall Port Mapping Question
    ... Sockets on the PC can be client or servers. ... The port number is usually selected by the ... and a Server on the other. ...
    (comp.security.firewalls)
  • Re: Maximum sockets
    ... "Phil Frisbie, Jr." ... > you call connectWindows assigns it to a unused port. ... > connect and close less than 3976 sockets every two minutes. ... I thought the WSAEADDRINUSE error occurred only when a connection was ...
    (microsoft.public.win32.programmer.networks)