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

IpGetAddressAsNumber

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

Description

The function converts an IPv4 address string in dot notation to its numerical value in network-byte order.

Parameters

  • address: The numerical IPv4 address to be converted.

Return Values

  • 4294967295 (0xFFFFFFF, the equivalent of “255.255.255.255”): The specified address string was invalid.
  • Any other value: The numeric equivalent of the given IPv4 address string.

Example