Lines Matching refs:sockaddr
156 PHPAPI void php_network_freeaddresses(struct sockaddr **sal) in php_network_freeaddresses()
158 struct sockaddr **sap; in php_network_freeaddresses()
171 PHPAPI int php_network_getaddresses(const char *host, int socktype, struct sockaddr ***sal, zend_st… in php_network_getaddresses()
173 struct sockaddr **sap; in php_network_getaddresses()
310 const struct sockaddr *addr,
430 struct sockaddr **sal, **psal, *sa;
522 …e_network_address_with_port(const char *addr, zend_long addrlen, struct sockaddr *sa, socklen_t *s…
529 struct sockaddr **psal;
611 struct sockaddr *sa, socklen_t sl,
615 struct sockaddr **addr,
676 struct sockaddr **addr,
684 if (getpeername(sock, (struct sockaddr*)&sa, &sl) == 0) {
685 php_network_populate_name_from_sockaddr((struct sockaddr*)&sa, sl,
696 struct sockaddr **addr,
704 if (getsockname(sock, (struct sockaddr*)&sa, &sl) == 0) {
705 php_network_populate_name_from_sockaddr((struct sockaddr*)&sa, sl,
727 struct sockaddr **addr,
748 clisock = accept(srvsock, (struct sockaddr*)&sa, &sl);
751 php_network_populate_name_from_sockaddr((struct sockaddr*)&sa, sl,
787 struct sockaddr **sal, **psal, *sa;
852 struct sockaddr *local_address = NULL;
858 local_address = (struct sockaddr*)in4;
873 local_address = (struct sockaddr*)in6;
988 switch (((struct sockaddr *)addr)->sa_family) {