Home
last modified time | relevance | path

Searched refs:socklen (Results 1 – 4 of 4) sorted by relevance

/PHP-8.0/sapi/fpm/fpm/
H A Dfpm_sockets.c200 …kets_new_listening_socket(struct fpm_worker_pool_s *wp, struct sockaddr *sa, int socklen) /* {{{ */ in fpm_sockets_new_listening_socket() argument
218 if (fpm_socket_unix_test_connect((struct sockaddr_un *)sa, socklen) == 0) { in fpm_sockets_new_listening_socket()
227 if (0 > bind(sock, sa, socklen)) { in fpm_sockets_new_listening_socket()
257 …kets_get_listening_socket(struct fpm_worker_pool_s *wp, struct sockaddr *sa, int socklen) /* {{{ */ in fpm_sockets_get_listening_socket() argument
266 sock = fpm_sockets_new_listening_socket(wp, sa, socklen); in fpm_sockets_get_listening_socket()
573 int fpm_socket_unix_test_connect(struct sockaddr_un *sock, size_t socklen) /* {{{ */ in fpm_socket_unix_test_connect() argument
585 if (connect(fd, (struct sockaddr *)sock, socklen) == -1) { in fpm_socket_unix_test_connect()
H A Dfpm_sockets.h29 int fpm_socket_unix_test_connect(struct sockaddr_un *sock, size_t socklen);
/PHP-8.0/main/
H A Dnetwork.c416 socklen_t socklen; local
441 socklen = sizeof(struct sockaddr_in6);
447 socklen = sizeof(struct sockaddr_in);
451 socklen = 0;
483 n = bind(sock, sa, socklen);
788 socklen_t socklen; local
829 socklen = sizeof(struct sockaddr_in6);
831 socklen = 0;
839 socklen = sizeof(struct sockaddr_in);
843 socklen = 0;
[all …]
/PHP-8.0/sapi/cli/
H A Dphp_cli_server.c195 socklen_t socklen; member
1246 *socklen = sizeof(struct sockaddr_in6); in php_network_listen_socket()
1253 *socklen = sizeof(struct sockaddr_in); in php_network_listen_socket()
1257 *socklen = 0; in php_network_listen_socket()
1269 if (bind(retval, sa, *socklen) == SOCK_CONN_ERR) { in php_network_listen_socket()
1282 if (getsockname(retval, sa, socklen)) { in php_network_listen_socket()
2435 …etwork_listen_socket(host, &port, SOCK_STREAM, &server->address_family, &server->socklen, &errstr); in php_cli_server_ctor()
2588 socklen_t socklen = server->socklen; in php_cli_server_do_event_for_each_fd_callback() local
2589 struct sockaddr *sa = pemalloc(server->socklen, 1); in php_cli_server_do_event_for_each_fd_callback()
2590 client_sock = accept(server->server_sock, sa, &socklen); in php_cli_server_do_event_for_each_fd_callback()
[all …]

Completed in 15 milliseconds