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

IpGetAddressAsString

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

Description

The function converts a numeric address in network-byte order (big endian) to an address string in dot notation as in “192.168.0.10”. For IPv6, the address string has to contain a string in colon notation as in “1234:5678:9ABC:DEF1:2345:6789:ABCD:EF12”.

Parameters

  • numericAddress: The numerical IPv4 address to be converted.
  • ipv6Address: The local IPv6 address in a 16 byte array.
  • address: The buffer used to store the converted IPv4 address.
  • count: The size of the address buffer.

Return Values

  • 0: The function completed successfully.
  • ERROR_NOT_ENOUGH_MEMORY (8): The address buffer was insufficient.
  • WSA_INVALID_PARAMETER (87): The specified address was invalid.

Example