Home
last modified time | relevance | path

Searched refs:socket (Results 1 – 11 of 11) sorted by relevance

/php-uv/examples/
H A Dpoll.php3 $socket = stream_socket_server("tcp://0.0.0.0:9999", $errno, $errstr); variable
4 stream_set_blocking($socket, 0);
6 $poll = uv_poll_init(uv_default_loop(), $socket);
8 uv_poll_start($poll, UV::READABLE, function($poll, $stat, $ev, $socket) {
11 $conn = stream_socket_accept($socket);
H A Dtcp_bind.php11 uv_read_start($client, function($socket, $buffer) use ($server) {
13 uv_close($socket);
21 uv_write($client, "Hello", function($socket, $status) {
22 uv_close($socket);
H A Dtcp_bind6.php11 uv_read_start($client, function($socket, $nread, $buffer) use ($server){
13 uv_close($socket);
21 uv_write($client,"Hello",function($socket, $stat){
22 uv_close($socket);
H A Dfingerd.php21 uv_read_start($client, function($socket, $buffer) use ($users){
31 uv_write($socket, $data, function($client, $stat) {
36 uv_close($socket);
/php-uv/tests/
H A D400-tcp_bind6.phpt10 uv_read_start($client, function($socket, $buffer) use ($server) {
12 uv_close($socket);
22 uv_write($client,"Hello",function($socket, $stat){
23 uv_close($socket, function() { });
H A D400-tcp_bind.phpt10 uv_read_start($client, function($socket, $buffer) use ($server) {
12 uv_close($socket);
22 uv_write($client,"Hello",function($socket, $stat) {
23 uv_close($socket,function() { });
H A D330-poll.phpt5 $socket = stream_socket_server("tcp://0.0.0.0:9999", $errno, $errstr);
6 stream_set_blocking($socket, 0);
8 $poll = uv_poll_init(uv_default_loop(), $socket);
9 uv_poll_start($poll, UV::READABLE, function($poll, $stat, $ev, $socket) {
10 $conn = stream_socket_accept($socket);
H A D005-uv_listen_cb-not-destroyed.phpt28 uv_read_start($client, function ($socket, $buffer) {
30 uv_close($socket);
H A D800-uv_stdio_new-issue59.phpt9 Warning: uv_stdio_new(): passed unexpected value, expected instance of UV, file resource or socket
/php-uv/
H A DREADME.md42 uv_close($socket);
258 binds a name to a socket.
285 uv_close($socket);
297 binds a name to a socket.
323 uv_close($socket);
410 uv_close($socket);
512 uv_read_stop($socket);
514 uv_close($socket);
613 uv_close($socket);
926 create a tcp socket.
[all …]
H A Dphp_uv.c428 php_socket *socket; local
457 …} else if (php_sockets_le_socket_ptr && (socket = (php_socket *) zend_fetch_resource_ex(ptr, NULL,…
458 fd = socket->bsd_socket;
466 fd = socket->bsd_socket;
478 php_socket *socket; local
488 fd = socket->bsd_socket;
510 fd = socket->bsd_socket;
4855 php_socket *socket; local
4881 …} else if ((socket = (php_socket *) zend_fetch_resource_ex(handle, NULL, php_sockets_le_socket()))…
4882 fd = socket->bsd_socket;
[all …]

Completed in 31 milliseconds