The Nebula Device 3: Net::IpAddress Class Reference

The Nebula Device 3

Net::IpAddress Class Reference

#include <ipaddress.h>


Detailed Description

Represents an IP address, consisting of a IPv4 host address and a port number. Can extract address information from an URI and automatically converts host names to addresses, and offers the special hostnames "localhost", "any", "broadcast", "self" and "inetself" where:

  • "localhost" will translate to 127.0.0.1
  • "any" will translate to INADDR_ANY, which is 0.0.0.0
  • "broadcast" will translate to INADDR_BROADCAST, which is 255.255.255.255
  • "self" will translate to the first valid tcp/ip address for this host (there may be more then one address bound to the host)
  • "inetself" will translate to the first host address which is not a LAN address (which is not a class A, B, or C network) if none such exists the address will fall back to "self"

(C) 2006 Radon Labs GmbH