Home
last modified time | relevance | path

Searched refs:sockaddr (Results 1 – 22 of 22) sorted by relevance

/PHP-8.1/ext/sockets/
H A Dmulticast.h69 struct sockaddr *group,
76 struct sockaddr *group,
84 struct sockaddr *group,
86 struct sockaddr *source,
93 struct sockaddr *group,
95 struct sockaddr *source,
102 struct sockaddr *group,
104 struct sockaddr *source,
111 struct sockaddr *group,
113 struct sockaddr *source,
H A Dmulticast.c371 struct sockaddr *group, in php_mcast_join()
381 struct sockaddr *group, in php_mcast_leave()
392 struct sockaddr *group, in php_mcast_join_source()
394 struct sockaddr *source, in php_mcast_join_source()
404 struct sockaddr *group, in php_mcast_leave_source()
406 struct sockaddr *source, in php_mcast_leave_source()
416 struct sockaddr *group, in php_mcast_block_source()
418 struct sockaddr *source, in php_mcast_block_source()
428 struct sockaddr *group, in php_mcast_unblock_source()
430 struct sockaddr *source, in php_mcast_unblock_source()
[all …]
H A Dsockets.c1087 struct sockaddr *sa;
1106 sa = (struct sockaddr *) &sa_storage;
1164 struct sockaddr *sa;
1183 sa = (struct sockaddr *) &sa_storage;
1388 struct sockaddr *sock_type = (struct sockaddr*) &sa_storage;
1415 retval = bind(php_sock->bsd_socket, (struct sockaddr *) sa,
2539 zval *arg1, sockaddr; local
2558 array_init(&sockaddr);
2567 add_assoc_string(&sockaddr, "sin_addr", addr);
2578 add_assoc_string(&sockaddr, "sin6_addr", addr);
[all …]
H A Dconversions.c584 static void from_zval_write_sockaddr_in(const zval *container, char *sockaddr, ser_context *ctx) in from_zval_write_sockaddr_in() argument
586 from_zval_write_aggregation(container, sockaddr, descriptors_sockaddr_in, ctx); in from_zval_write_sockaddr_in()
690 static void from_zval_write_sockaddr_un(const zval *container, char *sockaddr, ser_context *ctx) in from_zval_write_sockaddr_un() argument
692 from_zval_write_aggregation(container, sockaddr, descriptors_sockaddr_un, ctx); in from_zval_write_sockaddr_un()
699 struct sockaddr **sockaddr_ptr, in from_zval_write_sockaddr_aux()
797 const struct sockaddr *saddr = (struct sockaddr *)sockaddr_c; in to_zval_read_sockaddr_aux()
1041 struct sockaddr *sockaddr; in from_zval_write_name() local
1045 from_zval_write_sockaddr_aux(zname_arr, &sockaddr, &sockaddr_len, ctx); in from_zval_write_name()
1047 msghdr->msg_name = sockaddr; in from_zval_write_name()
/PHP-8.1/win32/
H A Dsockets.c49 if (bind(sock[0], (struct sockaddr *) &address, sizeof(address)) != 0) { in socketpair_win32()
53 if (getsockname(sock[0], (struct sockaddr *) &address, &size) != 0) { in socketpair_win32()
72 if (connect(sock[1], (struct sockaddr *) &address, sizeof(address)) != 0) { in socketpair_win32()
76 redirect = accept(sock[0], (struct sockaddr *) &address, &size); in socketpair_win32()
/PHP-8.1/ext/standard/
H A Dnet.c50 PHPAPI zend_string* php_inet_ntop(const struct sockaddr *addr) { in php_inet_ntop()
107 struct sockaddr *addr, struct sockaddr *netmask, in iface_append_unicast()
108 struct sockaddr *broadcast, struct sockaddr *ptp) { in iface_append_unicast()
236 (struct sockaddr*)u->Address.lpSockaddr, in PHP_FUNCTION()
237 (struct sockaddr*)&sin_mask, NULL, NULL); in PHP_FUNCTION()
251 (struct sockaddr*)u->Address.lpSockaddr, in PHP_FUNCTION()
252 (struct sockaddr*)&sin6_mask, NULL, NULL); in PHP_FUNCTION()
H A Dphp_net.h23 PHPAPI zend_string* php_inet_ntop(const struct sockaddr *addr);
H A Dphp_dns.h24 …((int)dns_search(res, dname, class, type, (char *) answer, anslen, (struct sockaddr *)&from, &from…
H A Ddns.c185 …if (getnameinfo((struct sockaddr *)&sa6, sizeof(sa6), out, sizeof(out), NULL, 0, NI_NAMEREQD) != 0… in php_gethostbyaddr()
192 …if (getnameinfo((struct sockaddr *)&sa4, sizeof(sa4), out, sizeof(out), NULL, 0, NI_NAMEREQD) != 0… in php_gethostbyaddr()
H A Dstreamsfuncs.c379 …etwork_parse_network_address_with_port(target_addr, target_addr_len, (struct sockaddr*)&sa, &sl)) { in PHP_FUNCTION()
/PHP-8.1/main/
H A Dphp_network.h265 PHPAPI int php_network_getaddresses(const char *host, int socktype, struct sockaddr ***sal, zend_st…
266 PHPAPI void php_network_freeaddresses(struct sockaddr **sal);
274 const struct sockaddr *addr,
290 struct sockaddr **addr,
300 struct sockaddr **addr,
306 struct sockaddr **addr,
333 struct sockaddr *sa, socklen_t sl,
337 struct sockaddr **addr,
342 zend_long addrlen, struct sockaddr *sa, socklen_t *sl);
H A Dnetwork.c141 struct sockaddr **sap; in php_network_freeaddresses()
156 struct sockaddr **sap;
306 const struct sockaddr *addr,
419 struct sockaddr **sal, **psal, *sa;
518 struct sockaddr **psal;
608 struct sockaddr *sa, socklen_t sl,
612 struct sockaddr **addr,
677 struct sockaddr **addr,
697 struct sockaddr **addr,
728 struct sockaddr **addr,
[all …]
H A Dfastcgi.c239 struct sockaddr sa;
531 if (getpeername(0, (struct sockaddr *)&sa, &len) != 0 && errno == ENOTCONN) { in fcgi_init()
760 bind(listen_socket, (struct sockaddr *) &sa, sock_len) < 0 ||
1406 req->fd = accept(listen_socket, (struct sockaddr *)&sa, &len);
/PHP-8.1/sapi/fpm/fpm/
H A Dfpm_sockets.c115 static void *fpm_get_in_addr(struct sockaddr *sa) /* {{{ */ in fpm_get_in_addr()
125 static int fpm_get_in_port(struct sockaddr *sa) /* {{{ */ in fpm_get_in_port()
135 static int fpm_sockets_hash_op(int sock, struct sockaddr *sa, char *key, int type, int op) /* {{{ */ in fpm_sockets_hash_op()
200 static int fpm_sockets_new_listening_socket(struct fpm_worker_pool_s *wp, struct sockaddr *sa, int … in fpm_sockets_new_listening_socket()
257 static int fpm_sockets_get_listening_socket(struct fpm_worker_pool_s *wp, struct sockaddr *sa, int … in fpm_sockets_get_listening_socket()
385 …return fpm_sockets_get_listening_socket(wp, (struct sockaddr *) &sa_un, sizeof(struct sockaddr_un)… in fpm_socket_af_unix_listening_socket()
585 if (connect(fd, (struct sockaddr *)sock, socklen) == -1) { in fpm_socket_unix_test_connect()
/PHP-8.1/main/streams/
H A Dphp_stream_transport.h143 struct sockaddr *addr;
152 struct sockaddr *addr;
H A Dxp_socket.c254 struct sockaddr *addr, socklen_t addrlen in sock_sendto()
272 struct sockaddr **addr, socklen_t *addrlen in sock_recvfrom()
281 ret = recvfrom(sock->socket, buf, XP_SOCK_BUF_SIZE(buflen), flags, (struct sockaddr*)&sa, &sl); in sock_recvfrom()
290 php_network_populate_name_from_sockaddr((struct sockaddr*)&sa, sl, in sock_recvfrom()
648 return bind(sock->socket, (const struct sockaddr *)&unix_addr, in php_tcp_sockop_bind()
728 …(const struct sockaddr *)&unix_addr, (socklen_t) XtOffsetOf(struct sockaddr_un, sun_path) + xparam… in php_tcp_sockop_connect()
/PHP-8.1/ext/ftp/
H A Dftp.c80 static int my_accept(ftpbuf_t *ftp, php_socket_t s, struct sockaddr *addr, socklen_t *addrlen);
143 if (getsockname(ftp->fd, (struct sockaddr*) &ftp->localaddr, &size) != 0) { in ftp_open()
779 struct sockaddr *sa; in ftp_pasv()
794 sa = (struct sockaddr *) &ftp->pasvaddr; in ftp_pasv()
1589 my_accept(ftpbuf_t *ftp, php_socket_t s, struct sockaddr *addr, socklen_t *addrlen) in my_accept()
1618 struct sockaddr *sa; in ftp_getdata()
1636 sa = (struct sockaddr *) &ftp->localaddr; in ftp_getdata()
1653 if (php_connect_nonb(fd, (struct sockaddr*) &ftp->pasvaddr, size, &tv) == -1) { in ftp_getdata()
1671 if (bind(fd, (struct sockaddr*) &addr, size) != 0) { in ftp_getdata()
1676 if (getsockname(fd, (struct sockaddr*) &addr, &size) != 0) { in ftp_getdata()
[all …]
/PHP-8.1/sapi/litespeed/
H A Dlsapilib.c637 if (( getpeername( fd, (struct sockaddr *)achPeer, &len ) != 0 )&& in isPipe()
1580 (struct sockaddr *)&achPeer, &len ); in LSAPI_Accept_r()
1596 if (((struct sockaddr *)&achPeer)->sa_family == AF_INET ) in LSAPI_Accept_r()
2614 int LSAPI_CreateListenSock2( const struct sockaddr * pServerAddr, int backlog ) in LSAPI_CreateListenSock2()
2662 int LSAPI_ParseSockAddr( const char * pBind, struct sockaddr * pAddr ) in LSAPI_ParseSockAddr()
2770 ret = LSAPI_ParseSockAddr( pBind, (struct sockaddr *)serverAddr ); in LSAPI_CreateListenSock()
2773 fd = LSAPI_CreateListenSock2( (struct sockaddr *)serverAddr, backlog ); in LSAPI_CreateListenSock()
2857 fd = accept( fdListen, (struct sockaddr *)&achPeer, &len ); in lsapi_accept()
2860 if (((struct sockaddr *)&achPeer)->sa_family == AF_INET ) in lsapi_accept()
/PHP-8.1/sapi/cli/
H A Dphp_cli_server.c165 struct sockaddr *addr;
1238 struct sockaddr *sa = NULL, **p, **sal; in php_network_listen_socket()
1897 …lient *client, php_cli_server *server, php_socket_t client_sock, struct sockaddr *addr, socklen_t … in php_cli_server_client_ctor()
2604 struct sockaddr *sa = pemalloc(server->socklen, 1); in php_cli_server_do_event_for_each_fd_callback()
/PHP-8.1/ext/snmp/
H A Dsnmp.c798 struct sockaddr **psal; in netsnmp_session_init()
799 struct sockaddr **res; in netsnmp_session_init()
/PHP-8.1/build/
H A Dphp.m41341 dnl Check if field sa_len exists in struct sockaddr.
1342 AC_CACHE_CHECK([for field sa_len in struct sockaddr],ac_cv_sockaddr_sa_len,[
1344 #include <sys/socket.h>]], [[static struct sockaddr sa; int n = (int) sa.sa_len; return n;]])],
1348 AC_DEFINE(HAVE_SOCKADDR_SA_LEN, 1, [Whether struct sockaddr has field sa_len])
/PHP-8.1/
H A Dconfigure.ac538 dnl Checks for sockaddr_storage and sockaddr.sa_len.

Completed in 169 milliseconds