Lines Matching refs:sockaddr
143 PHPAPI void php_network_freeaddresses(struct sockaddr **sal) in php_network_freeaddresses()
145 struct sockaddr **sap; in php_network_freeaddresses()
158 PHPAPI int php_network_getaddresses(const char *host, int socktype, struct sockaddr ***sal, zend_st… in php_network_getaddresses()
160 struct sockaddr **sap; in php_network_getaddresses()
306 const struct sockaddr *addr,
419 struct sockaddr **sal, **psal, *sa;
516 …e_network_address_with_port(const char *addr, zend_long addrlen, struct sockaddr *sa, socklen_t *s…
523 struct sockaddr **psal;
609 struct sockaddr *sa, socklen_t sl,
613 struct sockaddr **addr,
674 struct sockaddr **addr,
682 if (getpeername(sock, (struct sockaddr*)&sa, &sl) == 0) {
683 php_network_populate_name_from_sockaddr((struct sockaddr*)&sa, sl,
694 struct sockaddr **addr,
702 if (getsockname(sock, (struct sockaddr*)&sa, &sl) == 0) {
703 php_network_populate_name_from_sockaddr((struct sockaddr*)&sa, sl,
725 struct sockaddr **addr,
747 clisock = accept(srvsock, (struct sockaddr*)&sa, &sl);
750 php_network_populate_name_from_sockaddr((struct sockaddr*)&sa, sl,
790 struct sockaddr **sal, **psal, *sa;
855 struct sockaddr *local_address = NULL;
864 local_address = (struct sockaddr*)in4;
879 local_address = (struct sockaddr*)in6;
1003 switch (((struct sockaddr *)addr)->sa_family) {