www.beck-ipc.com

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


listen

Listen for incoming connections.

int listen ( int sd, int backlog, int *error );

Parameters

sd

Socket descriptor.

backlog

The maximum number (limited to 5) of allowed outstanding connections

error

Output parameter:  Failure code, 0 on success.

Return Value

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

Comments

This API function places the socket in passive mode and sets the number of incoming TCP connections the system will queue (backlog ).

This call is used by a TCP server.

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