International PHP Conference Munich 2025

Voting

: five minus two?
(Example: nine)

The Note You're Voting On

tim at e2-media dot co dot nz
21 years ago
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
)
);

<< Back to user notes page

To Top