UDT Reference: UDT Functions

getlasterror

The getlasterror method retrieves the last UDT error in the thread.

UDTERROR& getlasterror(
);

Parameters

None.

Return Values

The latest UDT error in the same thread is retrieved and stored in the ERRORINFO structure.

Descriptions

The getlasterror method reads the latest UDT error occurred in the thread where this method is called. This method will always succeed. If there is no error ever occurred, the method returns the ERRORINFO structure indicating a successful state.

See Also

UDT Sockets Structure, Error Code List