|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--osl.transport.udp.UDPAddress
This class defines the UDP implementation of the PhysicalAddress class expected by the transport layer component. An address is simply a machine name-port pair.
PhysicalAddress, Serialized Form| Field Summary | |
byte[] |
cache
Cached serialized form of this address. |
java.net.InetAddress |
hostAddr
|
int |
hostPort
The port for this address. |
java.lang.String |
rep
Cached string representation of this address. |
| Constructor Summary | |
UDPAddress()
Default constructor |
|
UDPAddress(java.net.InetAddress addr,
int port)
Full constructor |
|
| Method Summary | |
boolean |
equals(java.lang.Object other)
Compares two instances and returns true if they should be considered "equal". |
int |
hashCode()
Returns the hashCode for this instace. |
void |
readExternal(java.io.ObjectInput in)
Deserialize into a new instnace of UDPAddress by reading from the given input stream. |
java.lang.String |
toString()
The canoncial toString method. |
void |
writeExternal(java.io.ObjectOutput out)
Serialize the contents of this class to the output stream. |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public java.net.InetAddress hostAddr
public int hostPort
public byte[] cache
public java.lang.String rep
| Constructor Detail |
public UDPAddress()
public UDPAddress(java.net.InetAddress addr,
int port)
addr - The InetAddress to use for this
address.port - The port to use for this address.| Method Detail |
public boolean equals(java.lang.Object other)
other - The Object to which we are being
compared.public int hashCode()
public java.lang.String toString()
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
out - The OutputStream to which we should
write this instance.
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
in - The InputStream from which we should
deserialize this instance.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||