For a datagram socket, this error indicates that the time to live has expired. The buf parameter is not completely contained in a valid part of the user address space.Ī blocking Windows Sockets 1.1 call is in progress, or the service provider is still processing a callback function.įor a connection-oriented socket, this error indicates that the connection has been broken due to keep-alive activity that detected a failure while the operation was in progress. WSAStartup call must occur before using this function. Otherwise, a value of SOCKET_ERROR is returned, and a specific error code can be retrieved by calling If the connection has been gracefully closed, the return value is zero. Recv returns the number of bytes received and the buffer pointed to by the buf parameter will contain this data received. See the Remarks section for details on the possible value for this parameter. ![]() ![]() The length, in bytes, of the buffer pointed to by the buf parameter.Ī set of flags that influences the behavior of this function. The descriptor that identifies a connected socket.Ī pointer to the buffer to receive the incoming data. ![]() Recv function receives data from a connected socket or a bound connectionless socket.
0 Comments
Leave a Reply. |