The recv function receives data from a connected socket or a bound connectionless socket. Syntax. C++. Copy. int recv( [in] SOCKET s, [out] char *buf, [in] int len, [in] int flags. ); Parameters. [in] s. The descriptor that identifies a connected socket. [out] buf. A pointer to the buffer to receive the incoming … See more