diff options
author | Stig Venaas <venaas@php.net> | 2002-01-06 22:45:43 +0000 |
---|---|---|
committer | Stig Venaas <venaas@php.net> | 2002-01-06 22:45:43 +0000 |
commit | a6ec8d37e6e661e781e527340069c06a53f95d70 (patch) | |
tree | aa04f6a13ef9d363c6c17abe7b82ee8d1b05b0a1 /main/php_network.h | |
parent | b9355b9a11a838f12b9084c1292567bd76226b2e (diff) | |
download | php-git-a6ec8d37e6e661e781e527340069c06a53f95d70.tar.gz |
hostconnect now divides the timeout with no. of addresses. If a connection
attempt times out, it goes on to the next. Unless each timeout would be
<5s. Added php_any_addr() that fills out the any address for IPv6 and IPv4.
Diffstat (limited to 'main/php_network.h')
-rw-r--r-- | main/php_network.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/php_network.h b/main/php_network.h index d95b72dd47..b5c7363c55 100644 --- a/main/php_network.h +++ b/main/php_network.h @@ -53,6 +53,7 @@ typedef struct { int php_hostconnect(const char *host, unsigned short port, int socktype, int timeout); PHPAPI int php_connect_nonb(int sockfd, const struct sockaddr *addr, socklen_t addrlen, struct timeval *timeout); +void php_any_addr(int family, php_sockaddr_storage *addr, unsigned short port); #endif /* _PHP_NETWORK_H */ |