Lines Matching refs:socket
2 bool socket_shutdown ( resource $socket [, int $how = 2 ] ) ;
20 $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
21 $socketConn = socket_connect($socket, $host, $port);
22 var_dump(socket_shutdown($socket,0));
23 socket_close($socket);
25 $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
26 $socketConn = socket_connect($socket, $host, $port);
27 var_dump(socket_shutdown($socket,1));
28 socket_close($socket);
30 $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
31 $socketConn = socket_connect($socket, $host, $port);
32 var_dump(socket_shutdown($socket,2));
33 socket_close($socket);
35 $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
36 var_dump(socket_shutdown($socket,0));
38 $socketConn = socket_connect($socket, $host, $port);
39 var_dump(socket_shutdown($socket,-1));
40 socket_close($socket);
46 unset($socket);
54 Warning: socket_shutdown(): unable to shutdown socket [%d]: Transport endpoint is not connected in …
57 Warning: socket_shutdown(): unable to shutdown socket [%d]: Invalid argument in %s on line %d