Lines Matching refs:sockaddr
133 PHPAPI void php_network_freeaddresses(struct sockaddr **sal) in php_network_freeaddresses()
135 struct sockaddr **sap; in php_network_freeaddresses()
148 PHPAPI int php_network_getaddresses(const char *host, int socktype, struct sockaddr ***sal, zend_st… in php_network_getaddresses()
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()
552 …arse_network_address_with_port(const char *addr, size_t addrlen, struct sockaddr *sa, socklen_t *s… in php_network_parse_network_address_with_port()
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()
716 if (getpeername(sock, (struct sockaddr*)&sa, &sl) == 0) { in php_network_get_peer_name()
717 php_network_populate_name_from_sockaddr((struct sockaddr*)&sa, sl, in php_network_get_peer_name()
728 struct sockaddr **addr, in php_network_get_sock_name()
736 if (getsockname(sock, (struct sockaddr*)&sa, &sl) == 0) { in php_network_get_sock_name()
737 php_network_populate_name_from_sockaddr((struct sockaddr*)&sa, sl, in php_network_get_sock_name()
759 struct sockaddr **addr, in php_network_accept_incoming()
781 clisock = accept(srvsock, (struct sockaddr*)&sa, &sl); in php_network_accept_incoming()
784 php_network_populate_name_from_sockaddr((struct sockaddr*)&sa, sl, in php_network_accept_incoming()
823 struct sockaddr **sal, **psal, *sa; in php_network_connect_socket_to_host()
883 struct sockaddr common; in php_network_connect_socket_to_host()
1022 switch (((struct sockaddr *)addr)->sa_family) { in php_sockaddr_size()