Skip to main content
Open topic with navigation

IpGetLastError

CAPL Functions » TCP/IP API » IpGetLastError Valid for: CANoe DE • CANoe4SW DE

Function Syntax

long IpGetLastError();

Description

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

Parameters

Return Values

The error code as provided by the Winsock 2 WSAGetLastError function.

Example

on start
{
  // produces an error 10049...
  TcpOpen(0xffffffff, 1);

  writeLineEx(1, 3, "IpGetLastError: %d", IpGetLastError());
}