www.beck-ipc.com

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


closesocket

Close a socket.

int closesocket ( int sd, int *error );

Parameters

sd

Socket descriptor.

error

Output parameter:  Failure code, 0 on success.

Return Value

-1: Failure (see error output parameter)
0: success

Comments

Closes the socket indicated by sd and releases all of its associated resources.

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