com.eyebolt.iplib
Class IPAddress

java.lang.Object
  |
  +--com.eyebolt.iplib.IPAddress

public class IPAddress
extends java.lang.Object

wrapper for TCP/IP addresses

Version:
0.01, 4 Jan 1997
Author:
John Gardner

Field Summary
private  java.net.InetAddress address
           
private  int port
           
 
Constructor Summary
IPAddress()
          Construct an address with the IP of this system, and no port.
IPAddress(java.net.InetAddress addr, int newPort)
          Construct an address with the given IP address and the given port.
IPAddress(int newPort)
          Construct an address with the IP of this system, and the given port.
 
Method Summary
 java.net.InetAddress getAddress()
          Gets the Address attribute of the IPAddress object
 int getPort()
          Gets the Port attribute of the IPAddress object
 java.lang.String toString()
          Description of the Method
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

address

private java.net.InetAddress address

port

private int port
Constructor Detail

IPAddress

public IPAddress()
Construct an address with the IP of this system, and no port.

IPAddress

public IPAddress(int newPort)
Construct an address with the IP of this system, and the given port.
Parameters:
newPort - Description of Parameter

IPAddress

public IPAddress(java.net.InetAddress addr,
                 int newPort)
Construct an address with the given IP address and the given port.
Parameters:
addr - Description of Parameter
newPort - Description of Parameter
Method Detail

getPort

public int getPort()
Gets the Port attribute of the IPAddress object
Returns:
The Port value

getAddress

public java.net.InetAddress getAddress()
Gets the Address attribute of the IPAddress object
Returns:
The Address value

toString

public java.lang.String toString()
Description of the Method
Overrides:
toString in class java.lang.Object
Returns:
Description of the Returned Value


Copyright © 2001 Eyebolt, Inc.