At 14.02 -0400 1998.09.08, Strider wrote: > I'm writing a port scanner (for white hat use, of course =) and >I've run into a bit of a snag. There's a server on our net that's lagged- >it takes so long to connect to each port (or to be denied the connection) >that I'm going to have to skip the server on my passes altogether, unless I >can somehow set a timeout for my connect()'s. I had a thought that (at >least in the UNIX world) such a thing might be accomplished with an alarm >or system call. How would I do it on a mac? $SIG{ALRM} works fine. If you use IO::Socket, you can set a Timeout parameter (which is, I believe, implemented using alarm() and $SIG{ALRM}). -- Chris Nandor mailto:pudge@pobox.com http://pudge.net/ %PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10 1FF77F13 8180B6B6']) ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch