ASL
InetAddress Class Reference

Detailed Description

Represents an endpoint of a socket which is ususally an IP address and a port.

Both IPv4 and IPv6 are supported.

#include <Socket.h>

Public Member Functions

 InetAddress (const String &host, int port)
 Creates an address with a name (to be looked up) and a port.
 
String toString () const
 Returns a string representation of this address.
 
int port () const
 Returns the port.
 
String host () const
 Returns the host IP as a string.
 
Type type () const
 Returns the type IPv4 or IPv6 of this address.
 

Static Public Member Functions

static Array< InetAddresslookup (const String &name)
 Resolves a name and returns a list of addresses, possibly including IPv4 and IPv6, or translates a literal (such as "10.0.0.1" or "::1")
 

The documentation for this class was generated from the following file: