develooper Front page | perl.beginners | Postings from March 2002

sockets

From:
Schelstraete Bart
Date:
March 20, 2002 08:35
Subject:
sockets
Message ID:
3C98BA5C.6060805@bru-hub.dhl.com
Gents,

Can perl check if a port is up, and if that port immediately exists if 
you try to connect to it?

For example:
I have a program running on port 8000. If you telnet to the port (8000), 
  you'll see 'connected to'.....and telnet will exist immediately...
if that happens ........then perl should say : 'ok'.......

Do somewhone know how I need to implement this?


rgrds,

		Bart



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About