Skip to main content
Open topic with navigation

OnIpGetHostByName

CAPL Functions » TCP/IP API » OnIpGetHostByName

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

Description

The callback is called if a previous call of IpGetHostByName is returned with error code WSAEWOULDBLOCK (10035) and the dissolve of the address is completed.

Parameters

  • result: The result of the function. See the Winsock 2 Error Codes for possible errors. Typical values are:
    • result: 0: The function completed successfully.
    • WSAHOST_NOT_FOUND (11001): Host not found.
  • hostname: The hostname which was resolved by the function.
  • ipv4Address: Array in which the determined IPv4 addresses are written.
  • ipv6Address: Array in which the determined IPv6 addresses are written.
  • count: Number of determined addresses.

Return Values

Example