note 42438 added to function.socket-set-option

From: Date: Mon, 17 May 2004 00:00:03 +0000
Subject: note 42438 added to function.socket-set-option
Groups: php.notes 
Request: Send a blank email to php-notes+get-69679@lists.php.net to get a copy of this message
To set a socket timeout value (assuming you've set it blocking) use: socket_set_option( $socket, SOL_SOCKET, // socket level SO_SNDTIMEO, // timeout option array( "sec"=>10, // Timeout in seconds "usec"=>0 // I assume timeout in microseconds ) ); ---- Manual Page -- http://www.php.net/manual/en/function.socket-set-option.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+42438 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42438&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42438&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#69679) next »