WSAGetLastError

WSAGetLastError gets the status for the last Winsock operation that failed.

Syntax

Copy
int WSAGetLastError(void);

Parameters

None.

Return Value

The last network error that occurred within the calling thread.

Functions can set this value by calling WSASetLastError.

Remarks

To reset the error code, use WSASetLastError with iError set to zero.

Requirements

Minimum supported version Header Library

wRTOS 1.0 SDK

winsock2.h

RttcpipApi.lib