From 2fba0362020fcbf73e37e5c7b79a04da8e3dc418 Mon Sep 17 00:00:00 2001 From: Daniel Beulshausen Date: Thu, 1 Nov 2001 16:51:59 +0000 Subject: - convert to use new zend_parse_parameters API - unify errormessages + add socket_last_error() - fix linklibrary under windows - some streamlining --- ext/sockets/php_sockets.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'ext/sockets/php_sockets.h') diff --git a/ext/sockets/php_sockets.h b/ext/sockets/php_sockets.h index cea2b28be4..0c7049ab43 100644 --- a/ext/sockets/php_sockets.h +++ b/ext/sockets/php_sockets.h @@ -76,6 +76,7 @@ PHP_FUNCTION(socket_writev); PHP_FUNCTION(socket_getopt); PHP_FUNCTION(socket_setopt); PHP_FUNCTION(socket_shutdown); +PHP_FUNCTION(socket_last_error); typedef struct php_iovec { struct iovec *iov_array; @@ -87,8 +88,9 @@ typedef int SOCKET; #endif typedef struct { - SOCKET bsd_socket; + SOCKET bsd_socket; int type; + int error; } php_socket; typedef struct { @@ -105,6 +107,9 @@ typedef struct { zend_bool use_system_read; } php_sockets_globals; +int php_read(int bsd_socket, void *buf, int maxlen); +char *php_strerror(int error); + #ifdef ZTS #define SOCKETSG(v) (sockets_globals->v) -- cgit v1.2.1