/PHP-8.1/win32/ |
H A D | sockets.c | 38 sock[1] = redirect = INVALID_SOCKET; in socketpair_win32() 40 sock[0] = socket(domain, type, protocol); in socketpair_win32() 41 if (INVALID_SOCKET == sock[0]) { in socketpair_win32() 57 if (listen(sock[0], 2) != 0) { in socketpair_win32() 62 sock[1] = socket(domain, type, protocol); in socketpair_win32() 64 sock[1] = WSASocket(domain, type, protocol, NULL, 0, 0); in socketpair_win32() 67 if (INVALID_SOCKET == sock[1]) { in socketpair_win32() 81 closesocket(sock[0]); in socketpair_win32() 82 sock[0] = redirect; in socketpair_win32() 88 closesocket(sock[0]); in socketpair_win32() [all …]
|
H A D | sockets.h | 25 PHPAPI int socketpair_win32(int domain, int type, int protocol, SOCKET sock[2], int overlapped); 26 PHPAPI int socketpair(int domain, int type, int protocol, SOCKET sock[2]);
|
/PHP-8.1/main/streams/ |
H A D | xp_socket.c | 63 if (!sock || sock->socket == -1) { in php_sockop_write() 128 if (!sock || sock->socket == -1) { in php_sock_stream_wait_for_data() 132 sock->timeout_event = 0; in php_sock_stream_wait_for_data() 159 if (!sock || sock->socket == -1) { in php_sockop_read() 163 if (sock->is_blocked) { in php_sockop_read() 169 …nr_bytes = recv(sock->socket, buf, XP_SOCK_BUF_SIZE(count), (sock->is_blocked && sock->timeout.tv_… in php_sockop_read() 197 if (!sock) { in php_sockop_close() 315 if (!sock) { in php_sockop_set_option() 467 if (!sock) { in php_sockop_cast() 924 sock->is_blocked = 1; in php_stream_generic_socket_factory() [all …]
|
/PHP-8.1/sapi/fpm/fpm/ |
H A D | fpm_sockets.c | 33 int sock; member 190 ls->sock = sock; in fpm_sockets_hash_op() 203 int sock; in fpm_sockets_new_listening_socket() local 232 close(sock); in fpm_sockets_new_listening_socket() 249 close(sock); in fpm_sockets_new_listening_socket() 253 return sock; in fpm_sockets_new_listening_socket() 259 int sock; in fpm_sockets_get_listening_socket() local 269 return sock; in fpm_sockets_get_listening_socket() 315 return sock; in fpm_socket_af_inet_socket_by_addr() 374 return sock; in fpm_socket_af_inet_listening_socket() [all …]
|
H A D | fpm_sockets.h | 28 int fpm_socket_get_listening_queue(int sock, unsigned *cur_lq, unsigned *max_lq); 29 int fpm_socket_unix_test_connect(struct sockaddr_un *sock, size_t socklen);
|
/PHP-8.1/ext/sockets/tests/ |
H A D | wsaprotocol_info_0.phpt | 17 if (($sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP)) === false) { 21 if (socket_bind($sock, $address, $port) === false) { 22 …fprintf(STDERR, "socket_bind() failed: reason: " . socket_strerror(socket_last_error($sock)) . "\n… 25 if (socket_listen($sock, 5) === false) { 26 …ntf(STDERR, "socket_listen() failed: reason: " . socket_strerror(socket_last_error($sock)) . "\n"); 31 $info = socket_wsaprotocol_info_export($sock, $pid); 35 var_dump($sock, $sock2); 39 var_dump($sock, $sock2); 42 $info = socket_wsaprotocol_info_export($sock, 123412341); 44 socket_close($sock);
|
H A D | socket_import_stream-1.phpt | 14 $sock = socket_import_stream($s0); 15 var_dump($sock); 16 socket_write($sock, "test message"); 17 socket_close($sock);
|
H A D | socket_export_stream-3.phpt | 19 $sock = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP); 20 socket_bind($sock, '0.0.0.0', 0); 21 socket_getsockname($sock, $unused, $port); 22 $stream = socket_export_stream($sock); 24 $so = socket_set_option($sock, IPPROTO_IP, MCAST_JOIN_GROUP, array(
|
H A D | bug_export_stream_type.phpt | 7 $sock = socket_create(AF_INET, SOCK_DGRAM, 0); 8 $stream = socket_export_stream($sock);
|
H A D | mcast_helpers.php.inc | 2 function checktimeout($sock, $limit) { 3 $readfs = array($sock);
|
/PHP-8.1/ext/standard/tests/http/ |
H A D | server.inc | 57 $sock = stream_socket_accept($server); 58 if (!$sock) { 66 stream_set_blocking($sock, false); 67 while (!feof($sock)) { 72 $line = stream_get_line($sock, 8192, "\r\n"); 84 stream_set_blocking($sock, true); 95 stream_copy_to_stream($fd, $sock); 97 fclose($sock); 109 $sock = stream_socket_accept($server); 110 if (!$sock) { [all …]
|
/PHP-8.1/ext/standard/tests/streams/ |
H A D | bug74556.phpt | 9 $sock = tempnam(sys_get_temp_dir(), 'bug74556') . '.sock'; 10 $s = stream_socket_server("unix://$sock"); 11 $c = stream_socket_client("unix://$sock"); 17 unlink($sock);
|
H A D | stream_socket_recvfrom.phpt | 8 $sock = stream_socket_server($serverUri, $errno, $errstr); 11 var_dump(stream_socket_recvfrom($sock, $sockLen)); 12 var_dump(stream_socket_recvfrom($sock, $sockLen, STREAM_OOB)); 13 var_dump(stream_socket_recvfrom($sock, $sockLen, STREAM_PEEK));
|
H A D | bug54623.phpt | 5 $sock = pfsockopen('udp://127.0.0.1', '63844'); 6 var_dump((int)$sock); 7 @fwrite($sock, "1"); 13 fwrite($sock, "3");
|
H A D | stream_socket_get_name.phpt | 8 $sock = stream_socket_server($serverUri, $errno, $errstr); 10 var_dump(stream_socket_get_name($sock, false)); 11 var_dump(stream_socket_get_name($sock, true));
|
/PHP-8.1/ext/mysqli/ |
H A D | config.m4 | 4 /var/run/mysqld/mysqld.sock \ 5 /var/tmp/mysql.sock \ 6 /var/run/mysql/mysql.sock \ 7 /var/lib/mysql/mysql.sock \ 8 /var/mysql/mysql.sock \ 9 /usr/local/mysql/var/mysql.sock \ 10 /Private/tmp/mysql.sock \ 11 /private/tmp/mysql.sock \ 12 /tmp/mysql.sock \ 35 PHP_ARG_WITH([mysql-sock], [all …]
|
/PHP-8.1/ext/sockets/ |
H A D | multicast.h | 67 php_socket *sock, 74 php_socket *sock, 82 php_socket *sock, 91 php_socket *sock, 100 php_socket *sock, 109 php_socket *sock,
|
H A D | multicast.c | 369 php_socket *sock, in php_mcast_join() argument 379 php_socket *sock, in php_mcast_leave() argument 390 php_socket *sock, in php_mcast_join_source() argument 402 php_socket *sock, in php_mcast_leave_source() argument 414 php_socket *sock, in php_mcast_block_source() argument 426 php_socket *sock, in php_mcast_unblock_source() argument 440 php_socket *sock, in _php_mcast_join_leave() argument 458 if (sock->type == AF_INET) { in _php_mcast_join_leave() 479 else if (sock->type == AF_INET6) { in _php_mcast_join_leave() 503 php_socket *sock, in _php_mcast_source_op() argument [all …]
|
/PHP-8.1/ext/standard/tests/network/ |
H A D | udgloop.phpt | 11 if (file_exists("/tmp/$uniqid.sock")) 12 die('Temporary socket /tmp/$uniqid.sock already exists.'); 15 $server = stream_socket_server("udg:///tmp/$uniqid.sock", $errno, $errstr, STREAM_SERVER_BIND); 21 $client = stream_socket_client("udg:///tmp/$uniqid.sock"); 33 unlink("/tmp/$uniqid.sock");
|
H A D | unixloop.phpt | 11 if (file_exists("/tmp/$uniqid.sock")) 15 $server = stream_socket_server("unix:///tmp/$uniqid.sock"); 21 $client = stream_socket_client("unix:///tmp/$uniqid.sock"); 40 unlink("/tmp/$uniqid.sock");
|
/PHP-8.1/main/ |
H A D | network.c | 418 php_socket_t sock; local 452 if (sock == SOCK_ERR) { 491 closesocket(sock); 493 sock = -1; 506 return sock; 792 php_socket_t sock; local 953 closesocket(sock); 955 sock = -1; 961 return sock; 1087 sock->is_blocked = 1; [all …]
|
/PHP-8.1/ext/curl/tests/ |
H A D | bug78775.phpt | 13 $sock = fsockopen("tls://google.com", 443); 15 var_dump($sock); 29 fwrite($sock, "GET / HTTP/1.0\n\n"); 30 var_dump(fread($sock, 8));
|
/PHP-8.1/ext/openssl/tests/ |
H A D | bug46127.phpt | 20 $sock = stream_socket_server($serverUri, $errno, $errstr, $serverFlags, $serverCtx); 23 $link = stream_socket_accept($sock); 38 $sock = stream_socket_client($serverUri, $errno, $errstr, 2, $clientFlags, $clientCtx); 40 echo fgets($sock);
|
H A D | stream_server_reneg_limit.phpt | 54 foreach ($r as $sock) { 55 if ($sock === $server && ($client = stream_socket_accept($server, $timeout = 42))) { 58 } elseif ($sock !== $server) { 59 $clientId = (int) $sock; 60 $buffer = fread($sock, 1024); 63 } elseif (!is_resource($sock) || feof($sock)) {
|
H A D | bug68920.phpt | 37 $sock = stream_socket_client($serverUri, $errno, $errstr, 30, $clientFlags, $ctx); 38 var_dump($sock); 41 $sock = stream_socket_client($serverUri, $errno, $errstr, 30, $clientFlags, $ctx); 42 var_dump($sock); 45 $sock = stream_socket_client($serverUri, $errno, $errstr, 30, $clientFlags, $ctx); 46 var_dump($sock); 49 $sock = stream_socket_client($serverUri, $errno, $errstr, 30, $clientFlags, $ctx); 50 var_dump($sock);
|