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. |
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 totheport
- the port number that will be connected to
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.