www.beck-ipc.com

@CHIP-RTOS C Library - TCP/IP API


get_socketerror

Get last socket error.

int get_socketerror ( int sd );

Parameters

sd

Socket descriptor.

Return Value

error code

Comments

Returns the last error which occured on specified socket.

SC1x3/SC2x Comments

A faster dynamic linked version of this API is available starting with @CHIP-RTOS-x86 version 1.36.   This alternative API is named get_socketerror_Dyn . When the compilation switch

     #define TCPIP_DYN_LINK_SOCK

is defined in the user application prior to including the Beck C-Library header files, the C-Library TCPIP_Socket.H include file redefines get_socketerror to get_socketerror_Dyn .

With or without this compilation switch set, the get_socketerror_Dyn() alternative may be called explicitly.

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.02V1.00V1.00V0.90V1.00

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


End of document