PHP » socket_set_block

Sets blocking mode on a socket resource

Parameters Description
socket A valid socket resource created with socket_create() or socket_accept().

Return Value: Returns TRUE on success or FALSE on failure.

Example

<?php
$socket = socket_create_listen(1223);
socket_set_block($socket);

socket_accept($socket);
?>
Submit an Idea
  Thank you for your valuable feedback.
Your E-mail (optional):
Select Option:
Description:
 
Feedback
Your Name / email address
Feedback as
Your feedback
close
Quickly sign in with:

Create a FATALWEB account here:

First name:

Last name:

E-mail address:

Join Fatalweb

Already have a fatalweb account? Log in here