Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: socket.h

send()

IMPORT_C int send(int, const char *, size_t, int);

Description

Initiates transmission of a message from the specified socket to its peer. The send() function sends a message only when the socket is connected.

Parameters

int

Specifies a socket descriptor to use for the send.

const 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 numbers of characters sent. On Failure, returns -1, errno may be set.