Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: socket.h

setsockopt()

IMPORT_C int setsockopt(int, int, int, void *, size_t);

Description

Manipulates options associated with a socket. Options can exist at multiple protocol levels. However, the options are always present at the uppermost socket level. Options affect socket operations, such as the routing of packets, out-of-band data transfer, and so on.

Parameters

int

Specifies a socket for which an option should be set.

int

Identifies whether the operation applies to the socket itself or to the underlying protocol being used. The socket itself is identified by the symbolic constant SOL_SOCKET. Other protocol levels require the protocol number for the appropriate protocol controlling the option.

int

Specifies a single option to which the request applies, negative option values are not support on Symbian OS.

void *

Specifies a value for the option.

size_t

Specifies the length of the option value.

Return value

int

On Success, returns 0. On Failure, returns -1, errno may be set.