Lines Matching refs:addr
302 const struct sockaddr *addr, argument
317 if ((n = connect(sockfd, addr, addrlen)) != 0) {
512 PHPAPI int php_network_parse_network_address_with_port(const char *addr, zend_long addrlen, struct … argument
530 if (*addr == '[') {
531 colon = memchr(addr + 1, ']', addrlen-1);
536 addr++;
538 colon = memchr(addr, ':', addrlen);
545 tmp = estrndup(addr, colon - addr);
609 struct sockaddr **addr, argument
613 if (addr) {
614 *addr = emalloc(sl);
615 memcpy(*addr, sa, sl);
670 struct sockaddr **addr, argument
681 addr, addrlen
690 struct sockaddr **addr, argument
701 addr, addrlen
721 struct sockaddr **addr, argument
748 addr, addrlen
970 PHPAPI void php_any_addr(int family, php_sockaddr_storage *addr, unsigned short port) argument
972 memset(addr, 0, sizeof(php_sockaddr_storage));
976 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) addr;
984 struct sockaddr_in *sin = (struct sockaddr_in *) addr;
997 PHPAPI int php_sockaddr_size(php_sockaddr_storage *addr) argument
999 switch (((struct sockaddr *)addr)->sa_family) {