InetAddress Class Reference

[APE Index] [APE Hierarchy] [Headers]


Internet Address binary data type. More...

#include <socket.h>

Public Members

Protected Members


Detailed Description

binary encoded internet host addresses are held in this special class object. This class represents the 'generic' internet address data type. Other InetAddress derived objects hold addresses which are used only for specific purposes, such as for network masks, broadcast addresses, etc.


InetAddress() [public]

Create an Internet Address object with an empty (0.0.0.0) address.

InetAddress(struct in_addr) [public]

Convert the system internet address data type (struct in_addr) into an APE InetAddress object.

Parameters:
addr struct of system used binary internet address.

InetAddress(const char *address) [public]

Convert an null terminated ASCII host address string (example: "127.0.0.1") directly into an APE InetAddress object.

Parameters:
address null terminated C string.

char* getHostname(void) [public]

Provide a string representation of the value (Internet Address) held in the InetAddress object.

Returns:
string representation of InetAddress.

inline struct in_addr getAddress(void) [public]

Provide a low level system usable struct in_addr object from the contents of InetAddress. This is needed for services such as bind() and connect().

Returns:
system binary coded internet address.

  • Author: David Sugar <dyfet@oste.com>
  • Documentation generated by dyfet@home.sys on Thu Dec 16 09:54:26 EST 1999
Kdoc