Documentation Index
Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
IpGetHostByName
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
long IpGetHostByName(char hostname[],dword ipv4Address[], dword &count); // form 1long IpGetHostByName(char hostname[],byte ipv6Address [][], dword &count); // form 2long IpGetHostByName(char hostname[], IP_Address addresses[], dword &count ); // form 3
Description
The function dissolves a host name in its IP address. The given host name is first searched in the CANoe DE product Simulation Setup and then in the assigned database. If the name is not defined there, it is determined via a DNS request by using the operating system stack. For this, the operating system stack must be selected in the CANoe DE product TCP/IP Stack configuration dialog. The result is then given back in the corresponding callback OnIpGetHostByName.Parameters
- hostname: The name of the host whose address should be determined.
- ipv4Address: Array in which the determined IPv4 addresses are written.
- ipv6Address: Array in which the determined IPv6 addresses are written.
- count:
- On call: buffer size (only form 1-2)
- After call: Number of determined addresses
- addresses: Array of IP_Address elements, which is filled with the IP addresses (IPv4 and IPv6) for the host.
Return Values
- 0: The function completed successfully.
- ERROR_NOT_ENOUGH_MEMORY (8): The given address array is too small.
- WSAEWOULDBLOCK (10035): The function will be completed later and the callback is called.
- WSAHOST_NOT_FOUND (11001): Host not found.