Skip to main content
Open topic with navigation CAPL Functions » TCP/IP API » IpGetLastSocketError

IpGetLastSocketError

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

Method Syntax

Method Syntax

Description

The function returns the Winsock 2 error code of the last operation that failed on the specified socket.

Parameters

  • socket: The socket handle.

Return Values

  • WSA_INVALID_PARAMETER (87): The specified socket was invalid.
  • Any other value: The error code as provided by the Winsock 2 WSAGetLastError function.

Example

IpGetLastErrorIpGetLastSocketErrorAsString