Lines Matching refs:sockaddr
144 PHPAPI void php_network_freeaddresses(struct sockaddr **sal) in php_network_freeaddresses()
146 struct sockaddr **sap; in php_network_freeaddresses()
159 PHPAPI int php_network_getaddresses(const char *host, int socktype, struct sockaddr ***sal, zend_st… in php_network_getaddresses()
161 struct sockaddr **sap; in php_network_getaddresses()
298 const struct sockaddr *addr,
418 struct sockaddr **sal, **psal, *sa;
515 …e_network_address_with_port(const char *addr, zend_long addrlen, struct sockaddr *sa, socklen_t *s…
522 struct sockaddr **psal;
529 memset(sa, 0, sizeof(struct sockaddr));
606 struct sockaddr *sa, socklen_t sl,
610 struct sockaddr **addr,
671 struct sockaddr **addr,
679 if (getpeername(sock, (struct sockaddr*)&sa, &sl) == 0) {
680 php_network_populate_name_from_sockaddr((struct sockaddr*)&sa, sl,
691 struct sockaddr **addr,
699 if (getsockname(sock, (struct sockaddr*)&sa, &sl) == 0) {
700 php_network_populate_name_from_sockaddr((struct sockaddr*)&sa, sl,
722 struct sockaddr **addr,
744 clisock = accept(srvsock, (struct sockaddr*)&sa, &sl);
747 php_network_populate_name_from_sockaddr((struct sockaddr*)&sa, sl,
787 struct sockaddr **sal, **psal, *sa;
852 struct sockaddr *local_address = NULL;
861 local_address = (struct sockaddr*)in4;
876 local_address = (struct sockaddr*)in6;
1000 switch (((struct sockaddr *)addr)->sa_family) {