Lines Matching refs:addr
310 const struct sockaddr *addr, argument
326 if ((n = connect(sockfd, addr, addrlen)) != 0) {
399 return (connect(sockfd, addr, addrlen) == 0) ? 0 : -1;
527 PHPAPI int php_network_parse_network_address_with_port(const char *addr, zend_long addrlen, struct … argument
541 if (*addr == '[') {
542 colon = memchr(addr + 1, ']', addrlen-1);
547 addr++;
549 colon = memchr(addr, ':', addrlen);
556 tmp = estrndup(addr, colon - addr);
620 struct sockaddr **addr, argument
624 if (addr) {
625 *addr = emalloc(sl);
626 memcpy(*addr, sa, sl);
681 struct sockaddr **addr, argument
692 addr, addrlen
701 struct sockaddr **addr, argument
712 addr, addrlen
732 struct sockaddr **addr, argument
759 addr, addrlen
981 PHPAPI void php_any_addr(int family, php_sockaddr_storage *addr, unsigned short port) argument
983 memset(addr, 0, sizeof(php_sockaddr_storage));
987 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) addr;
995 struct sockaddr_in *sin = (struct sockaddr_in *) addr;
1008 PHPAPI int php_sockaddr_size(php_sockaddr_storage *addr) argument
1010 switch (((struct sockaddr *)addr)->sa_family) {