Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: socket.h

recv()

IMPORT_C int recv(int, char *, size_t, int);

Description

Receives a message from a socket. The recv() call can be used on a connection mode socket or a bound, connectionless socket. If no messages are available at the socket, the recv() call waits for a message to arrive unless the socket is nonblocking.

Parameters

int

Specifies a socket descriptor to use for the send.

char *

Points to the buffer containing message to send.

size_t

Specifies the length of the message in bytes.

int

Lets the sender control the way data is sent.

Return value

int

On Success, returns the number of bytes received. On Failure, returns -1, eerno may be set.