Home
last modified time | relevance | path

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

/php-src/ext/sockets/
H A Dmulticast.h70 struct sockaddr *group,
77 struct sockaddr *group,
85 struct sockaddr *group,
87 struct sockaddr *source,
94 struct sockaddr *group,
96 struct sockaddr *source,
103 struct sockaddr *group,
105 struct sockaddr *source,
112 struct sockaddr *group,
114 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.c961 struct sockaddr *sa;
981 sa = (struct sockaddr *) &sa_storage;
1032 struct sockaddr *sa;
1052 sa = (struct sockaddr *) &sa_storage;
1269 struct sockaddr *sock_type = (struct sockaddr*) &sa_storage;
1299 retval = bind(php_sock->bsd_socket, (struct sockaddr *) sa,
2726 zval *arg1, sockaddr; local
2745 array_init(&sockaddr);
2754 add_assoc_string(&sockaddr, "sin_addr", addr);
2765 add_assoc_string(&sockaddr, "sin6_addr", addr);
[all …]
H A Dconversions.c592 static void from_zval_write_sockaddr_in(const zval *container, char *sockaddr, ser_context *ctx) in from_zval_write_sockaddr_in() argument
594 from_zval_write_aggregation(container, sockaddr, descriptors_sockaddr_in, ctx); in from_zval_write_sockaddr_in()
698 static void from_zval_write_sockaddr_un(const zval *container, char *sockaddr, ser_context *ctx) in from_zval_write_sockaddr_un() argument
700 from_zval_write_aggregation(container, sockaddr, descriptors_sockaddr_un, ctx); in from_zval_write_sockaddr_un()
707 struct sockaddr **sockaddr_ptr, in from_zval_write_sockaddr_aux()
806 const struct sockaddr *saddr = (struct sockaddr *)sockaddr_c; in to_zval_read_sockaddr_aux()
1050 struct sockaddr *sockaddr; in from_zval_write_name() local
1054 from_zval_write_sockaddr_aux(zname_arr, &sockaddr, &sockaddr_len, ctx); in from_zval_write_name()
1056 msghdr->msg_name = sockaddr; in from_zval_write_name()
/php-src/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-src/ext/standard/
H A Dnet.c50 PHPAPI zend_string* php_inet_ntop(const struct sockaddr *addr) { in php_inet_ntop()
104 struct sockaddr *addr, struct sockaddr *netmask, in iface_append_unicast()
105 struct sockaddr *broadcast, struct sockaddr *ptp) { in iface_append_unicast()
233 (struct sockaddr*)u->Address.lpSockaddr, in PHP_FUNCTION()
234 (struct sockaddr*)&sin_mask, NULL, NULL); in PHP_FUNCTION()
248 (struct sockaddr*)u->Address.lpSockaddr, in PHP_FUNCTION()
249 (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.c184 …if (getnameinfo((struct sockaddr *)&sa6, sizeof(sa6), out, sizeof(out), NULL, 0, NI_NAMEREQD) != 0… in php_gethostbyaddr()
191 …if (getnameinfo((struct sockaddr *)&sa4, sizeof(sa4), out, sizeof(out), NULL, 0, NI_NAMEREQD) != 0… in php_gethostbyaddr()
H A Dstreamsfuncs.c380 …etwork_parse_network_address_with_port(target_addr, target_addr_len, (struct sockaddr*)&sa, &sl)) { in PHP_FUNCTION()
/php-src/main/
H A Dphp_network.h263 PHPAPI int php_network_getaddresses(const char *host, int socktype, struct sockaddr ***sal, zend_st…
264 PHPAPI void php_network_freeaddresses(struct sockaddr **sal);
272 const struct sockaddr *addr,
288 struct sockaddr **addr,
298 struct sockaddr **addr,
304 struct sockaddr **addr,
331 struct sockaddr *sa, socklen_t sl,
335 struct sockaddr **addr,
340 size_t addrlen, struct sockaddr *sa, socklen_t *sl);
H A Dnetwork.c135 struct sockaddr **sap; in php_network_freeaddresses()
150 struct sockaddr **sap; in php_network_getaddresses()
335 const struct sockaddr *addr, in php_network_connect_socket()
460 struct sockaddr **sal, **psal, *sa; in php_network_bind_socket_to_local_addr()
559 struct sockaddr **psal; in php_network_parse_network_address_with_port()
645 struct sockaddr *sa, socklen_t sl, in php_network_populate_name_from_sockaddr()
649 struct sockaddr **addr, in php_network_populate_name_from_sockaddr()
708 struct sockaddr **addr, in php_network_get_peer_name()
728 struct sockaddr **addr, in php_network_get_sock_name()
759 struct sockaddr **addr, in php_network_accept_incoming()
[all …]
H A Dfastcgi.c237 struct sockaddr sa;
529 if (getpeername(0, (struct sockaddr *)&sa, &len) != 0 && errno == ENOTCONN) { in fcgi_init()
753 bind(listen_socket, (struct sockaddr *) &sa, sock_len) < 0 || in fcgi_listen()
1397 req->fd = accept(listen_socket, (struct sockaddr *)&sa, &len);
/php-src/sapi/fpm/fpm/
H A Dfpm_sockets.c119 static void *fpm_get_in_addr(struct sockaddr *sa) /* {{{ */ in fpm_get_in_addr()
129 static int fpm_get_in_port(struct sockaddr *sa) /* {{{ */ in fpm_get_in_port()
139 static int fpm_sockets_hash_op(int sock, struct sockaddr *sa, char *key, int type, int op) /* {{{ */ in fpm_sockets_hash_op()
205 static int fpm_sockets_new_listening_socket(struct fpm_worker_pool_s *wp, struct sockaddr *sa, int … in fpm_sockets_new_listening_socket()
276 static int fpm_sockets_get_listening_socket(struct fpm_worker_pool_s *wp, struct sockaddr *sa, int … in fpm_sockets_get_listening_socket()
420 …return fpm_sockets_get_listening_socket(wp, (struct sockaddr *) &sa_un, sizeof(struct sockaddr_un)… in fpm_socket_af_unix_listening_socket()
663 if (connect(fd, (struct sockaddr *)sock, socklen) == -1) { in fpm_socket_unix_test_connect()
/php-src/main/streams/
H A Dphp_stream_transport.h143 struct sockaddr *addr;
152 struct sockaddr *addr;
H A Dxp_socket.c276 struct sockaddr *addr, socklen_t addrlen in sock_sendto()
294 struct sockaddr **addr, socklen_t *addrlen in sock_recvfrom()
303 ret = recvfrom(sock->socket, buf, XP_SOCK_BUF_SIZE(buflen), flags, (struct sockaddr*)&sa, &sl); in sock_recvfrom()
312 php_network_populate_name_from_sockaddr((struct sockaddr*)&sa, sl, in sock_recvfrom()
687 return bind(sock->socket, (const struct sockaddr *)&unix_addr, in php_tcp_sockop_bind()
767 …(const struct sockaddr *)&unix_addr, (socklen_t) XtOffsetOf(struct sockaddr_un, sun_path) + xparam… in php_tcp_sockop_connect()
/php-src/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()
799 struct sockaddr *sa; in ftp_pasv()
814 sa = (struct sockaddr *) &ftp->pasvaddr; in ftp_pasv()
1633 my_accept(ftpbuf_t *ftp, php_socket_t s, struct sockaddr *addr, socklen_t *addrlen) in my_accept()
1662 struct sockaddr *sa; in ftp_getdata()
1680 sa = (struct sockaddr *) &ftp->localaddr; in ftp_getdata()
1697 if (php_connect_nonb(fd, (struct sockaddr*) &ftp->pasvaddr, size, &tv) == -1) { in ftp_getdata()
1715 if (bind(fd, (struct sockaddr*) &addr, size) != 0) { in ftp_getdata()
1720 if (getsockname(fd, (struct sockaddr*) &addr, &size) != 0) { in ftp_getdata()
[all …]
/php-src/sapi/litespeed/
H A Dlsapilib.c638 if (( getpeername( fd, (struct sockaddr *)achPeer, &len ) != 0 )&& in isPipe()
1551 (struct sockaddr *)&achPeer, &len ); in LSAPI_Accept_r()
1567 if (((struct sockaddr *)&achPeer)->sa_family == AF_INET ) in LSAPI_Accept_r()
2585 int LSAPI_CreateListenSock2( const struct sockaddr * pServerAddr, int backlog ) in LSAPI_CreateListenSock2()
2633 int LSAPI_ParseSockAddr( const char * pBind, struct sockaddr * pAddr ) in LSAPI_ParseSockAddr()
2736 ret = LSAPI_ParseSockAddr( pBind, (struct sockaddr *)serverAddr ); in LSAPI_CreateListenSock()
2739 fd = LSAPI_CreateListenSock2( (struct sockaddr *)serverAddr, backlog ); in LSAPI_CreateListenSock()
2823 fd = accept( fdListen, (struct sockaddr *)&achPeer, &len ); in lsapi_accept()
2826 if (((struct sockaddr *)&achPeer)->sa_family == AF_INET ) in lsapi_accept()
/php-src/sapi/cli/
H A Dphp_cli_server.c175 struct sockaddr *addr;
1287 struct sockaddr *sa = NULL, **p, **sal; in php_network_listen_socket()
1959 …lient *client, php_cli_server *server, php_socket_t client_sock, struct sockaddr *addr, socklen_t … in php_cli_server_client_ctor()
2707 struct sockaddr *sa = pemalloc(server->socklen, 1); in php_cli_server_do_event_for_each_fd_callback()
/php-src/ext/snmp/
H A Dsnmp.c841 struct sockaddr **psal; in netsnmp_session_init()
842 struct sockaddr **res; in netsnmp_session_init()
/php-src/
H A Dconfigure.ac510 dnl Checks for sockaddr_storage and sockaddr.sa_len.
512 AC_CHECK_MEMBERS([struct sockaddr.sa_len],,,[#include <sys/socket.h>])

Completed in 90 milliseconds