diff options
author | Wez Furlong <wez@php.net> | 2001-05-05 18:36:22 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2001-05-05 18:36:22 +0000 |
commit | 3ffb8e3800db8733d1bba602200a51a47985c17a (patch) | |
tree | ce32f12f4ea0cb0ff9aa30bf8a744f5b09062c67 /main/php_network.h | |
parent | d5763bbdcbb6323aa99392145399deb6f58ec3aa (diff) | |
download | php-git-3ffb8e3800db8733d1bba602200a51a47985c17a.tar.gz |
Nuke buffering from php_streams, move connect_nonb() from fsock.c to network.c
and rename to php_connect_nonb().
Use php_connect_nonb() instead of connect() in php_hostconnect() -> timeouts
should now work in php_hostconnect().
sock streams abstraction now uses php_sockbuf as the "abstract" pointer.
Diffstat (limited to 'main/php_network.h')
-rw-r--r-- | main/php_network.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/main/php_network.h b/main/php_network.h index cf2851d914..eaacbc8450 100644 --- a/main/php_network.h +++ b/main/php_network.h @@ -20,7 +20,27 @@ #ifndef _PHP_NETWORK_H #define _PHP_NETWORK_H +#ifdef PHP_WIN32 +# ifndef WINNT +# define WINNT 1 +# endif +# undef FD_SETSIZE +# include "arpa/inet.h" +# define socklen_t unsigned int +#endif + +#ifdef HAVE_NETINET_IN_H +# include <netinet/in.h> +#endif + +#ifdef HAVE_SYS_SOCKET_H +#include <sys/socket.h> +#endif + + + int php_hostconnect(char *host, unsigned short port, int socktype, int timeout); +PHPAPI int php_connect_nonb(int sockfd, struct sockaddr *addr, socklen_t addrlen, struct timeval *timeout); #endif /* _PHP_NETWORK_H */ |