Class host

java.lang.Object
  |
  +--host

public class host
extends java.lang.Object

Class: host
This object is really a record and may one day be incorporated into a tree. Currently this is only a means to capture host information for the system. It will hold the name of the host and the port to listen on. It won't hold alias information, although it may make sense to hold all the informaiton regarding a host in this record, it makes it more difficult to process in the main object.

author: viaggi@nietzsche.net


Constructor Summary
host(java.lang.String strHost, int intNewPort)
          Name: host
          Desc: This is the only constructor for this object.
 
Method Summary
 java.lang.String hostname()
          Name: hostname
          Desc: This function will return the host name.
 int port()
          Name: port
          Desc: This function will return the port the host should listen on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

host

public host(java.lang.String strHost,
            int intNewPort)
Name: host
Desc: This is the only constructor for this object. There is currently only one way to build this object and set it's instance variables and that is to use the constructor method.

Parameters:
strHost - --> String, the name of the host
intNewPort - --> int, the port to listen on
Method Detail

port

public int port()
Name: port
Desc: This function will return the port the host should listen on.

Returns:
int --> the port to listen on

hostname

public java.lang.String hostname()
Name: hostname
Desc: This function will return the host name.

Returns:
String --> the host name of this object.