X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=StdLib%2FBsdSocketLib%2Frecv.c;h=0ad7252c4490909a8ce4b9f82113acc4a63d6cf3;hb=4ec76c062d0f48b5e43597a35aa39b3c4d16f6f9;hp=91f07cb08a3d6b6d4ef107e4d6e962261290b18d;hpb=7dc1329100c370992cdd430359512443bd1ee9f2;p=mirror_edk2.git diff --git a/StdLib/BsdSocketLib/recv.c b/StdLib/BsdSocketLib/recv.c index 91f07cb08a..0ad7252c44 100644 --- a/StdLib/BsdSocketLib/recv.c +++ b/StdLib/BsdSocketLib/recv.c @@ -18,8 +18,12 @@ /** Receive data from a network connection. - The ::recv routine waits for receive data from a remote network - connection. The + The recv routine waits for receive data from a remote network + connection. This routine is typically used for SOCK_STREAM + because it waits for receive data from the target system specified + in the ::connect call. + + The POSIX documentation is available online. @@ -31,9 +35,9 @@ @param [in] flags Message control flags - @return ::recv returns the number of valid bytes in the buffer, + @return This routine returns the number of valid bytes in the buffer, zero if no data was received, and -1 when an error occurs. - In the case of an error, errno contains more details. + In the case of an error, ::errno contains more details. **/ ssize_t