summaryrefslogtreecommitdiff
path: root/ext/sockets
diff options
context:
space:
mode:
authorMarkus Fischer <mfischer@php.net>2002-05-01 16:08:50 +0000
committerMarkus Fischer <mfischer@php.net>2002-05-01 16:08:50 +0000
commitae5bc7c0f63b7d6f3cec72509e0b882734793146 (patch)
tree1e7a7dd61c77f93e2e403747036e88d9c64ee9bf /ext/sockets
parent38a632517810bb5d02cd4e247a781f8d2f2f898d (diff)
downloadphp-git-ae5bc7c0f63b7d6f3cec72509e0b882734793146.tar.gz
- Update protos for getpeer/getsock-name.
Diffstat (limited to 'ext/sockets')
-rw-r--r--ext/sockets/sockets.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c
index b54828c372..9655be4326 100644
--- a/ext/sockets/sockets.c
+++ b/ext/sockets/sockets.c
@@ -772,7 +772,7 @@ PHP_FUNCTION(socket_read)
/* }}} */
/* {{{ proto bool socket_getsockname(resource socket, string &addr[, int &port])
- Given an fd, stores a string representing sa.sin_addr and the value of sa.sin_port into addr and port describing the local side of a socket */
+ Queries the remote side of the given socket which may either result in host/port or in a UNIX filesystem path, dependent on its type. */
PHP_FUNCTION(socket_getsockname)
{
zval *arg1, *addr, *port = NULL;
@@ -829,7 +829,7 @@ PHP_FUNCTION(socket_getsockname)
/* }}} */
/* {{{ proto bool socket_getpeername(resource socket, string &addr[, int &port])
- Given an fd, stores a string representing sa.sin_addr and the value of sa.sin_port into addr and port describing the remote side of a socket */
+ Queries the remote side of the given socket which may either result in host/port or in a UNIX filesystem path, dependent on its type. */
PHP_FUNCTION(socket_getpeername)
{
zval *arg1, *arg2, *arg3 = NULL;