summaryrefslogtreecommitdiff
path: root/ext/sockets/php_sockets.h
diff options
context:
space:
mode:
authorChris Vandomelen <chrisv@php.net>2000-07-08 01:50:34 +0000
committerChris Vandomelen <chrisv@php.net>2000-07-08 01:50:34 +0000
commitfd3d84ee52855be0638fa313ac4daf4b63546fc7 (patch)
tree839d12c4ad93e22964101ba5a52d5a5081690511 /ext/sockets/php_sockets.h
parent68b639b4f52063f5c6ffd43881c154a0bbc6f110 (diff)
downloadphp-git-fd3d84ee52855be0638fa313ac4daf4b63546fc7.tar.gz
* php4/ext/sockets.c, php4/ext/php_sockets.h:
Numerous changes. Many prototypes changed to be more like the appropriate *NIX counterparts. Many new prototypes defining many more advanced socket routines. Better AF_UNIX socket support. bind() now recognizes the socket type and acts appropriately, instead of needing the AF_* for the socket passed in. # Something I'd like to write yet is proper signal() support. Unfortunately, # the last time I tried, doing anything with the signal except ignoring it # caused PHP to segfault. And to have decent socket support.. at least, from # my experience, having signals is a good thing. Only problem.. to implement # it, some changes would have to be made to the parser - since that is where # the problems lie on handling asynchronous signals.
Diffstat (limited to 'ext/sockets/php_sockets.h')
-rw-r--r--ext/sockets/php_sockets.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/ext/sockets/php_sockets.h b/ext/sockets/php_sockets.h
index 41fd1f2b73..832ad01d7d 100644
--- a/ext/sockets/php_sockets.h
+++ b/ext/sockets/php_sockets.h
@@ -42,7 +42,6 @@ PHP_RINIT_FUNCTION(sockets);
PHP_RSHUTDOWN_FUNCTION(sockets);
PHP_MINFO_FUNCTION(sockets);
-PHP_FUNCTION(confirm_sockets_compiled); /* For testing, remove later. */
PHP_FUNCTION(confirm_sockets_compiled);
PHP_FUNCTION(fd_alloc);
PHP_FUNCTION(fd_dealloc);
@@ -58,13 +57,28 @@ PHP_FUNCTION(listen);
PHP_FUNCTION(close);
PHP_FUNCTION(write);
PHP_FUNCTION(read);
-PHP_FUNCTION(signal);
PHP_FUNCTION(getsockname);
PHP_FUNCTION(getpeername);
PHP_FUNCTION(socket);
PHP_FUNCTION(connect);
PHP_FUNCTION(strerror);
PHP_FUNCTION(bind);
+PHP_FUNCTION(recv);
+PHP_FUNCTION(send);
+PHP_FUNCTION(recvfrom);
+PHP_FUNCTION(sendto);
+PHP_FUNCTION(build_iovec);
+PHP_FUNCTION(fetch_iovec);
+PHP_FUNCTION(free_iovec);
+PHP_FUNCTION(add_iovec);
+PHP_FUNCTION(delete_iovec);
+PHP_FUNCTION(set_iovec);
+PHP_FUNCTION(recvmsg);
+PHP_FUNCTION(sendmsg);
+PHP_FUNCTION(readv);
+PHP_FUNCTION(writev);
+PHP_FUNCTION(getsockopt);
+PHP_FUNCTION(setsockopt);
/* Fill in this structure and use entries in it
for thread safety instead of using true globals.