www.beck-ipc.com

@CHIP-RTOS C Library V2.00 - TCP/IP API


setsockopt

Set options on a socket.

int setsockopt ( int sd, const SetSocketOption far *sockoptptr,
                 int *error);

Parameters

sd

Socket descriptor.

sockoptptr

Pointer to SetSocketOption type that specifies the socket options (see tcpipapi.h).

error

Output parameter:  Failure code, 0 on success.

Return Value

0 = success
Non-zero = Failure (see error output parameter)

Comments

This API function makes it possible to manipulate options associated with a socket.  Prior to calling this function the caller must fill in a SetSocketOption type data structure.  The socket options of an incoming connection (using accept) will be the same as the socket options of the listening socket.

See Also

RTOS API

This library function invokes a RTOS software interrupt. Refer to this RTOS API function's documentation for more details.


This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document