com.ibm.etill.framework.io
Class TcpipHost

java.lang.Object
  |
  +--com.ibm.etill.framework.io.TcpipHost

public class TcpipHost
extends Object

TcpipHost is class that represents a server to which a TCP/IP connection can be made using a host name and a port

Since:
1.2
Author:
dj

Constructor Summary
TcpipHost(String thehost, int theport)
          Class contructor that creates a TcpipHost using a host name and a port number.
 
Method Summary
 String getHostname()
          Gets the host name.
 int getPort()
          Gets the host name.
 void setHostname(String h)
          Sets the host name.
 void setPort(int p)
          Sets the host name.
 String toString()
          Returns the class in a string format.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TcpipHost

public TcpipHost(String thehost,
                 int theport)
Class contructor that creates a TcpipHost using a host name and a port number.
Parameters:
thehost - The name of the host that will be connected to
theport - the port number that will be connected to
Method Detail

getHostname

public String getHostname()
Gets the host name.
Returns:
a string containing the name of the host.

getPort

public int getPort()
Gets the host name.
Returns:
the port number of the host.

setHostname

public void setHostname(String h)
Sets the host name.
Parameters:
h - a string containing the name of the host.

setPort

public void setPort(int p)
Sets the host name.
Parameters:
p - the host port number.

toString

public String toString()
Returns the class in a string format.
Overrides:
toString in class Object
Returns:
a string in the format host name + ":" + port number.