Multiple Socket's at one time

From: Date: Thu, 13 May 2004 04:47:01 +0000
Subject: Multiple Socket's at one time
Groups: php.general 
Request: Send a blank email to php-general+get-186073@lists.php.net to get a copy of this message
Hi All, A simple example I got from the manual: $fp = @fsockopen ($address, $port, $errno, $errstr, 5); if (!$fp) { echo "Oops"; } else { echo "Ok"; fclose ($fp); } Can someone point me in the direction of being able to probe multiple ports at the same time? (multi-threading or forking concept) We are looking at creating our own monitoring service to test if ports are open on our servers. If we scan every minute, and each takes 5 seconds, that only allows us 12 such ports before we overflow into the next minute. Unless someone else has a better solution that we can implement? Thanks! Terence

« previous php.general (#186073) next »