Class Host1

public class Host1
implements java.lang.Comparable

Title:FreeOxy project

Description: This class represents a host in the FreeOxy network. A host is identified by its ip address.

Copyright: Copyright (c) 2003

Company:

Version:
1.0
Author:
Ravi Kosuri
Constructor Detail

Host1

public Host1(java.lang.String ipAddr)
Constructor. Initializes to an ip address.
Parameters:
ipAddr -

Method Detail

getIPAddress

java.lang.String getIPAddress()
Returns the ip address of the host
Returns:

toString

public java.lang.String toString()
override toString()
Returns:

compareTo

public int compareTo(java.lang.Object host)
For the comparable interface. Returns 0 if the objects have the same ip and port.
Parameters:
host -
Returns:

equals

public boolean equals(Host1 host)
returns true if the specified host is the same as me.
Parameters:
host -
Returns: