Home
last modified time | relevance | path

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

/PHP-7.2/ext/sockets/
H A Dmulticast.h73 struct sockaddr *group,
80 struct sockaddr *group,
88 struct sockaddr *group,
90 struct sockaddr *source,
97 struct sockaddr *group,
99 struct sockaddr *source,
106 struct sockaddr *group,
108 struct sockaddr *source,
115 struct sockaddr *group,
117 struct sockaddr *source,
H A Dmulticast.c384 struct sockaddr *group, in php_mcast_join()
394 struct sockaddr *group, in php_mcast_leave()
405 struct sockaddr *group, in php_mcast_join_source()
407 struct sockaddr *source, in php_mcast_join_source()
417 struct sockaddr *group, in php_mcast_leave_source()
419 struct sockaddr *source, in php_mcast_leave_source()
429 struct sockaddr *group, in php_mcast_block_source()
431 struct sockaddr *source, in php_mcast_block_source()
441 struct sockaddr *group, in php_mcast_unblock_source()
443 struct sockaddr *source, in php_mcast_unblock_source()
[all …]
H A Dsockets.c1275 struct sockaddr *sa;
1293 sa = (struct sockaddr *) &sa_storage;
1358 struct sockaddr *sa;
1376 sa = (struct sockaddr *) &sa_storage;
1586 struct sockaddr *sock_type = (struct sockaddr*) &sa_storage;
1616 retval = bind(php_sock->bsd_socket, (struct sockaddr *) sa,
2737 zval *arg1, sockaddr; local
2758 array_init(&sockaddr);
2767 add_assoc_string(&sockaddr, "sin_addr", addr);
2778 add_assoc_string(&sockaddr, "sin6_addr", addr);
[all …]
H A Dconversions.c581 static void from_zval_write_sockaddr_in(const zval *container, char *sockaddr, ser_context *ctx) in from_zval_write_sockaddr_in() argument
583 from_zval_write_aggregation(container, sockaddr, descriptors_sockaddr_in, ctx); in from_zval_write_sockaddr_in()
685 static void from_zval_write_sockaddr_un(const zval *container, char *sockaddr, ser_context *ctx) in from_zval_write_sockaddr_un() argument
687 from_zval_write_aggregation(container, sockaddr, descriptors_sockaddr_un, ctx); in from_zval_write_sockaddr_un()
694 struct sockaddr **sockaddr_ptr, in from_zval_write_sockaddr_aux()
785 const struct sockaddr *saddr = (struct sockaddr *)sockaddr_c; in to_zval_read_sockaddr_aux()
1036 struct sockaddr *sockaddr; in from_zval_write_name() local
1040 from_zval_write_sockaddr_aux(zname_arr, &sockaddr, &sockaddr_len, ctx); in from_zval_write_name()
1042 msghdr->msg_name = sockaddr; in from_zval_write_name()
/PHP-7.2/win32/
H A Dsockets.c54 if (bind(sock[0], (struct sockaddr*)&address, sizeof(address)) != 0) { in socketpair()
58 if(getsockname(sock[0], (struct sockaddr *)&address, &size) != 0) { in socketpair()
72 if(connect(sock[1], (struct sockaddr*)&address, sizeof(address)) != 0) { in socketpair()
76 redirect = accept(sock[0],(struct sockaddr*)&address, &size); in socketpair()
/PHP-7.2/main/
H A Dphp_network.h245 PHPAPI int php_network_getaddresses(const char *host, int socktype, struct sockaddr ***sal, zend_st…
246 PHPAPI void php_network_freeaddresses(struct sockaddr **sal);
254 const struct sockaddr *addr,
270 struct sockaddr **addr,
280 struct sockaddr **addr,
286 struct sockaddr **addr,
313 struct sockaddr *sa, socklen_t sl,
317 struct sockaddr **addr,
322 zend_long addrlen, struct sockaddr *sa, socklen_t *sl);
H A Dnetwork.c146 struct sockaddr **sap; in php_network_freeaddresses()
161 struct sockaddr **sap; in php_network_getaddresses()
298 const struct sockaddr *addr,
418 struct sockaddr **sal, **psal, *sa;
522 struct sockaddr **psal;
606 struct sockaddr *sa, socklen_t sl,
610 struct sockaddr **addr,
671 struct sockaddr **addr,
691 struct sockaddr **addr,
722 struct sockaddr **addr,
[all …]
H A Dfastcgi.c243 struct sockaddr sa;
540 if (getpeername(0, (struct sockaddr *)&sa, &len) != 0 && errno == ENOTCONN) { in fcgi_init()
765 bind(listen_socket, (struct sockaddr *) &sa, sock_len) < 0 || in fcgi_listen()
1411 req->fd = accept(listen_socket, (struct sockaddr *)&sa, &len);
/PHP-7.2/sapi/fpm/fpm/
H A Dfpm_sockets.c100 static void *fpm_get_in_addr(struct sockaddr *sa) /* {{{ */ in fpm_get_in_addr()
110 static int fpm_get_in_port(struct sockaddr *sa) /* {{{ */ in fpm_get_in_port()
120 static int fpm_sockets_hash_op(int sock, struct sockaddr *sa, char *key, int type, int op) /* {{{ */ in fpm_sockets_hash_op()
185 static int fpm_sockets_new_listening_socket(struct fpm_worker_pool_s *wp, struct sockaddr *sa, int … in fpm_sockets_new_listening_socket()
242 static int fpm_sockets_get_listening_socket(struct fpm_worker_pool_s *wp, struct sockaddr *sa, int … in fpm_sockets_get_listening_socket()
369 …return fpm_sockets_get_listening_socket(wp, (struct sockaddr *) &sa_un, sizeof(struct sockaddr_un)… in fpm_socket_af_unix_listening_socket()
574 if (connect(fd, (struct sockaddr *)sock, socklen) == -1) { in fpm_socket_unix_test_connect()
/PHP-7.2/main/streams/
H A Dphp_stream_transport.h146 struct sockaddr *addr;
155 struct sockaddr *addr;
H A Dxp_socket.c248 struct sockaddr *addr, socklen_t addrlen in sock_sendto()
266 struct sockaddr **addr, socklen_t *addrlen in sock_recvfrom()
275 ret = recvfrom(sock->socket, buf, XP_SOCK_BUF_SIZE(buflen), flags, (struct sockaddr*)&sa, &sl); in sock_recvfrom()
278 php_network_populate_name_from_sockaddr((struct sockaddr*)&sa, sl, in sock_recvfrom()
637 return bind(sock->socket, (const struct sockaddr *)&unix_addr, in php_tcp_sockop_bind()
717 …(const struct sockaddr *)&unix_addr, (socklen_t) XtOffsetOf(struct sockaddr_un, sun_path) + xparam… in php_tcp_sockop_connect()
/PHP-7.2/ext/standard/
H A Dphp_dns.h28 ((int)dns_search(res, dname, class, type, answer, anslen, (struct sockaddr *)&from, &fromsize))
H A Dstreamsfuncs.c365 …etwork_parse_network_address_with_port(target_addr, target_addr_len, (struct sockaddr*)&sa, &sl)) { in PHP_FUNCTION()
/PHP-7.2/sapi/phpdbg/
H A Dphpdbg_rinit_hook.c65 if (connect(s, (struct sockaddr *)&sock, len) == -1) { in PHP_RINIT_FUNCTION()
H A Dphpdbg_wait.c360 if (bind(sl, (struct sockaddr *)&local, len) == -1) { in PHPDBG_COMMAND()
373 sr = accept(sl, (struct sockaddr *) &remote, (socklen_t *) &rlen); in PHPDBG_COMMAND()
H A Dphpdbg.c1216 *socket = accept(server, (struct sockaddr *) &address, &size); in phpdbg_remote_init()
/PHP-7.2/ext/ftp/
H A Dftp.c81 static int my_accept(ftpbuf_t *ftp, php_socket_t s, struct sockaddr *addr, socklen_t *addrlen);
145 if (getsockname(ftp->fd, (struct sockaddr*) &ftp->localaddr, &size) != 0) { in ftp_open()
802 struct sockaddr *sa; in ftp_pasv()
817 sa = (struct sockaddr *) &ftp->pasvaddr; in ftp_pasv()
1624 my_accept(ftpbuf_t *ftp, php_socket_t s, struct sockaddr *addr, socklen_t *addrlen) in my_accept()
1654 struct sockaddr *sa; in ftp_getdata()
1672 sa = (struct sockaddr *) &ftp->localaddr; in ftp_getdata()
1689 if (php_connect_nonb(fd, (struct sockaddr*) &ftp->pasvaddr, size, &tv) == -1) { in ftp_getdata()
1707 if (bind(fd, (struct sockaddr*) &addr, size) != 0) { in ftp_getdata()
1712 if (getsockname(fd, (struct sockaddr*) &addr, &size) != 0) { in ftp_getdata()
[all …]
/PHP-7.2/sapi/litespeed/
H A Dlsapilib.c620 if (( getpeername( fd, (struct sockaddr *)achPeer, &len ) != 0 )&& in isPipe()
1562 (struct sockaddr *)&achPeer, &len ); in LSAPI_Accept_r()
1578 if (((struct sockaddr *)&achPeer)->sa_family == AF_INET ) in LSAPI_Accept_r()
2562 int LSAPI_CreateListenSock2( const struct sockaddr * pServerAddr, int backlog ) in LSAPI_CreateListenSock2()
2610 int LSAPI_ParseSockAddr( const char * pBind, struct sockaddr * pAddr ) in LSAPI_ParseSockAddr()
2713 ret = LSAPI_ParseSockAddr( pBind, (struct sockaddr *)serverAddr ); in LSAPI_CreateListenSock()
2716 fd = LSAPI_CreateListenSock2( (struct sockaddr *)serverAddr, backlog ); in LSAPI_CreateListenSock()
2797 fd = accept( fdListen, (struct sockaddr *)&achPeer, &len ); in lsapi_accept()
2800 if (((struct sockaddr *)&achPeer)->sa_family == AF_INET ) in lsapi_accept()
/PHP-7.2/sapi/cli/
H A Dphp_cli_server.c166 struct sockaddr *addr;
1192 struct sockaddr *sa = NULL, **p, **sal; in php_network_listen_socket()
1822 …lient *client, php_cli_server *server, php_socket_t client_sock, struct sockaddr *addr, socklen_t … in php_cli_server_client_ctor()
2430 struct sockaddr *sa = pemalloc(server->socklen, 1); in php_cli_server_do_event_for_each_fd_callback()
/PHP-7.2/ext/snmp/
H A Dsnmp.c1085 struct sockaddr **psal; in netsnmp_session_init()
1086 struct sockaddr **res; in netsnmp_session_init()
/PHP-7.2/
H A Dacinclude.m41619 dnl Check if field sa_len exists in struct sockaddr
1620 AC_CACHE_CHECK([for field sa_len in struct sockaddr],ac_cv_sockaddr_sa_len,[
1623 [static struct sockaddr sa; int n = (int) sa.sa_len; return n;],
1627 AC_DEFINE(HAVE_SOCKADDR_SA_LEN, 1, [Whether struct sockaddr has field sa_len])
H A Dconfigure.ac585 dnl Checks for sockaddr_storage and sockaddr.sa_len

Completed in 86 milliseconds