JavaGroups.JavaStack
Class Address
java.lang.Object
|
+--JavaGroups.JavaStack.Address
- public class Address
- extends java.lang.Object
- implements java.io.Externalizable
Network-dependent address (Internet). Generated by the bottommost layer of the protocol
stack (UDP).
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Address
public Address()
Address
public Address(java.lang.String i,
int p)
Address
public Address(java.net.InetAddress i,
int p)
Address
public Address(int port)
GetIpAddress
public java.net.InetAddress GetIpAddress()
SetIpAddress
public void SetIpAddress(java.net.InetAddress i)
GetPort
public int GetPort()
IsMulticastAddress
public boolean IsMulticastAddress()
SetLocalHost
public void SetLocalHost()
Compare
public int Compare(Address other)
- Establishes an order between 2 addresses. Assumes other contains non-null Address.
Excludes channel_name from comparison.
- Returns:
- 0 for equality, value less than 0 if smaller, greater than 0 if greater.
equals
public boolean equals(java.lang.Object obj)
- Overrides:
- equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
- hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
writeExternal
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Specified by:
- writeExternal in interface java.io.Externalizable
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Specified by:
- readExternal in interface java.io.Externalizable
main
public static void main(java.lang.String[] args)