diff options
author | Wez Furlong <wez@php.net> | 2002-03-15 21:03:08 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2002-03-15 21:03:08 +0000 |
commit | 0f65280cb5118d8c1a85db6626f7be365f3d1b26 (patch) | |
tree | 931b09acc5041eb771017e3ebf9ecb9aa833d722 /ext/standard/fsock.h | |
parent | 3a1ebd4f519facbd7ec769304857aad40e49cf1c (diff) | |
download | php-git-0f65280cb5118d8c1a85db6626f7be365f3d1b26.tar.gz |
New PHP streams...
Diffstat (limited to 'ext/standard/fsock.h')
-rw-r--r-- | ext/standard/fsock.h | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/ext/standard/fsock.h b/ext/standard/fsock.h index 13e5c5f196..fb134e97bc 100644 --- a/ext/standard/fsock.h +++ b/ext/standard/fsock.h @@ -27,54 +27,12 @@ #include "file.h" -#define PHP_FSOCK_CHUNK_SIZE 8192 - #include "php_network.h" -#if HAVE_PHP_STREAM -extern php_stream_ops php_stream_socket_ops; -#endif - -/* stream->abstract points to an instance of this */ -struct php_sockbuf { - int socket; - unsigned char *readbuf; - size_t readbuflen; - size_t readpos; - size_t writepos; - struct php_sockbuf *next; - struct php_sockbuf *prev; - char eof; - char persistent; - char is_blocked; - size_t chunk_size; - struct timeval timeout; - char timeout_event; -#if HAVE_PHP_STREAM - php_stream * stream; -#endif -}; - -typedef struct php_sockbuf php_sockbuf; - PHP_FUNCTION(fsockopen); PHP_FUNCTION(pfsockopen); PHPAPI int php_lookup_hostname(const char *addr, struct in_addr *in); -PHPAPI char *php_sock_fgets(char *buf, size_t maxlen, int socket); -PHPAPI size_t php_sock_fread(char *buf, size_t maxlen, int socket); -PHPAPI int php_sock_feof(int socket); -PHPAPI int php_sock_fgetc(int socket); -PHPAPI int php_is_persistent_sock(int); -PHPAPI int php_sockset_blocking(int socket, int mode); -PHPAPI void php_sockset_timeout(int socket, struct timeval *timeout); -PHPAPI int php_sockdestroy(int socket); -PHPAPI int php_sock_close(int socket); -PHPAPI size_t php_sock_set_def_chunk_size(size_t size); -PHPAPI void php_msock_destroy(int *data); -PHPAPI void php_cleanup_sockbuf(int persistent TSRMLS_DC); - -PHPAPI struct php_sockbuf *php_get_socket(int socket); PHP_RSHUTDOWN_FUNCTION(fsock); |