From 37f135ceeffa522ec558cfac07bd53b98f5867e6 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 29 Nov 2003 21:46:50 +0000 Subject: Add stream_socket_sendto and stream_socket_recvfrom which work very much like sendto() and recvfrom() syscalls. --- ext/standard/streamsfuncs.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ext/standard/streamsfuncs.h') diff --git a/ext/standard/streamsfuncs.h b/ext/standard/streamsfuncs.h index 8b308985e2..e0fd5e08c4 100644 --- a/ext/standard/streamsfuncs.h +++ b/ext/standard/streamsfuncs.h @@ -21,11 +21,14 @@ /* Flags for stream_socket_client */ #define PHP_STREAM_CLIENT_PERSISTENT 1 #define PHP_STREAM_CLIENT_ASYNC_CONNECT 2 +#define PHP_STREAM_CLIENT_CONNECT 4 PHP_FUNCTION(stream_socket_client); PHP_FUNCTION(stream_socket_server); PHP_FUNCTION(stream_socket_accept); PHP_FUNCTION(stream_socket_get_name); +PHP_FUNCTION(stream_socket_recvfrom); +PHP_FUNCTION(stream_socket_sendto); PHP_FUNCTION(stream_copy_to_stream); PHP_FUNCTION(stream_get_contents); -- cgit v1.2.1