From: Markus Fischer Date: Wed, 1 May 2002 16:08:50 +0000 (+0000) Subject: - Update protos for getpeer/getsock-name. X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~317 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae5bc7c0f63b7d6f3cec72509e0b882734793146;p=php - Update protos for getpeer/getsock-name. --- 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;