www.beck-ipc.com

@CHIP-RTOS C Library - TCP/IP API


ResetConnection

Abort a connection on a TCP socket.

int ResetConnection ( int sd, int *error );

Parameters

sd

Socket descriptor.

error

Output parameter:  Failure code, 0 on success.

Return Value

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

Comments

This function only works on TCP sockets andis used to abort a connection on a socket. It sends a RST and discards all outstanding data.  

A reset socket cannot be used for a new connection.
The socket is not closed.   This must be done using the closesocket API.

See Also

RTOS API

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

Supported since or modified in @CHIP-RTOS version

    SC12SC13SC11SC1x3SC2x
    V1.00V1.00V1.00V0.90V1.00

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


End of document