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.
This commit is contained in:
Stig Venaas 2002-01-06 22:45:43 +00:00
parent b9355b9a11
commit a6ec8d37e6
2 changed files with 52 additions and 13 deletions

View file

@ -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 */