WSASetLastError

WSASetLastError sets the error code which can be retrieved by WSAGetLastError call for the current thread.

Syntax

Copy
void WSASetLastError(
    __in int iError
);

Parameters

iError

Specifies the error code to be returned by a subsequent WSAGetLastError call.

Return Value

None.

Remarks

Error codes are 32-bit values. Bit 31 is the most significant bit, and bit 29 is reserved for application-defined error codes. No eRTOS TCP/IP error code has this bit set.

Requirements

Minimum supported version Header Library

eRTOS 1.0 SDK

Winsock2.h RtTcpipApi.lib