]> granicus.if.org Git - php/commitdiff
- Update protos for getpeer/getsock-name.
authorMarkus Fischer <mfischer@php.net>
Wed, 1 May 2002 16:08:50 +0000 (16:08 +0000)
committerMarkus Fischer <mfischer@php.net>
Wed, 1 May 2002 16:08:50 +0000 (16:08 +0000)
ext/sockets/sockets.c

index b54828c372a41726e40373a17ee8e4ff1dbab992..9655be4326e808276a1edc408ce8a80b657eee78 100644 (file)
@@ -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;