X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/2d21ac55c334faf3a56e5634905ed6987fc787d4..HEAD:/bsd/man/man2/getpeername.2?ds=inline diff --git a/bsd/man/man2/getpeername.2 b/bsd/man/man2/getpeername.2 index 88edc5d55..1db123b2a 100644 --- a/bsd/man/man2/getpeername.2 +++ b/bsd/man/man2/getpeername.2 @@ -38,7 +38,7 @@ .Os BSD 4.2 .Sh NAME .Nm getpeername -.Nd get name of connected peer +.Nd get address of connected peer .Sh SYNOPSIS .Fd #include .Ft int @@ -48,18 +48,20 @@ .Fa "socklen_t *restrict address_len" .Fc .Sh DESCRIPTION -.Fn Getpeername -returns the name of the peer connected to -socket -.Fa socket . +The +.Fn getpeername +function returns the address of the peer connected to the specified +socket. +.Pp The .Fa address_len parameter should be initialized to indicate the amount of space pointed to by -.Fa name . -On return it contains the actual size of the name +.Fa address . +On return it contains the actual size of the address returned (in bytes). -The name is truncated if the buffer provided is too small. +.Pp +The address is truncated if the buffer provided is too small. .Sh RETURN VALUES .Rv -std getpeername .Sh ERRORS