From 90289924c031c5b0b2aa1f99ecf317640c926a62 Mon Sep 17 00:00:00 2001 From: Jason Greene Date: Sat, 16 Aug 2003 06:34:36 +0000 Subject: Remove all vector based functions for the following reasons: - This solves alot of platform compatibility problems - The possible security issue of allocating an incredibly large vector pool is prevented - They are of little to no benefit in a high level language - 99% of all things done with these functions can be done using sendto/recvfrom --- ext/sockets/php_sockets.h | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'ext/sockets/php_sockets.h') diff --git a/ext/sockets/php_sockets.h b/ext/sockets/php_sockets.h index e7b7365ffa..043f83c3d6 100644 --- a/ext/sockets/php_sockets.h +++ b/ext/sockets/php_sockets.h @@ -44,12 +44,6 @@ PHP_MINFO_FUNCTION(sockets); PHP_RINIT_FUNCTION(sockets); PHP_RSHUTDOWN_FUNCTION(sockets); -PHP_FUNCTION(socket_iovec_alloc); -PHP_FUNCTION(socket_iovec_free); -PHP_FUNCTION(socket_iovec_set); -PHP_FUNCTION(socket_iovec_fetch); -PHP_FUNCTION(socket_iovec_add); -PHP_FUNCTION(socket_iovec_delete); PHP_FUNCTION(socket_select); PHP_FUNCTION(socket_create_listen); PHP_FUNCTION(socket_create_pair); @@ -70,23 +64,12 @@ PHP_FUNCTION(socket_recv); PHP_FUNCTION(socket_send); PHP_FUNCTION(socket_recvfrom); PHP_FUNCTION(socket_sendto); -#ifdef HAVE_CMSGHDR -PHP_FUNCTION(socket_recvmsg); -#endif -PHP_FUNCTION(socket_sendmsg); -PHP_FUNCTION(socket_readv); -PHP_FUNCTION(socket_writev); PHP_FUNCTION(socket_get_option); PHP_FUNCTION(socket_set_option); PHP_FUNCTION(socket_shutdown); PHP_FUNCTION(socket_last_error); PHP_FUNCTION(socket_clear_error); -typedef struct php_iovec { - struct iovec *iov_array; - unsigned int count; -} php_iovec_t; - #ifndef PHP_WIN32 typedef int PHP_SOCKET; #else -- cgit v1.2.1