|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mpisws.p2p.transport.multiaddress.MultiInetSocketAddress
public class MultiInetSocketAddress
Class which represets a source route to a remote IP address.
Field Summary | |
---|---|
protected java.net.InetSocketAddress[] |
address
|
Constructor Summary | |
---|---|
MultiInetSocketAddress(java.net.InetSocketAddress address)
Constructor |
|
MultiInetSocketAddress(java.net.InetSocketAddress[] addressList)
|
|
MultiInetSocketAddress(java.net.InetSocketAddress outer,
java.net.InetSocketAddress inner)
|
Method Summary | |
---|---|
boolean |
addressEquals(MultiInetSocketAddress that)
|
static MultiInetSocketAddress |
build(InputBuffer buf)
EpochInetSocketAddress: (IPV4): +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + numAddrs + IPVersion 0 + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + internet address 0 ... |
boolean |
equals(java.lang.Object o)
Checks equaltiy on source routes |
java.net.InetSocketAddress |
getAddress(int index)
|
java.net.InetSocketAddress |
getInnermostAddress()
This is for hairpinning support. |
int |
getNumAddresses()
|
java.net.InetSocketAddress |
getOutermostAddress()
|
short |
getSerializedLength()
|
int |
hashCode()
Returns the hashCode of this source route |
void |
serialize(OutputBuffer buf)
EpochInetSocketAddress: (IPV4): +-+-+-+-+-+-+-+-+ + numAddrs + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + internet address 0 + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + port 0 + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + internet address 1 + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + port 1 + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + internet address k + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + port k + ... |
java.lang.String |
toString()
Internal method for computing the toString of an array of InetSocketAddresses |
void |
toStringShort(java.lang.StringBuffer result)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.net.InetSocketAddress[] address
Constructor Detail |
---|
public MultiInetSocketAddress(java.net.InetSocketAddress address)
address
- The remote addressepoch
- The remote epochpublic MultiInetSocketAddress(java.net.InetSocketAddress[] addressList)
public MultiInetSocketAddress(java.net.InetSocketAddress outer, java.net.InetSocketAddress inner)
Method Detail |
---|
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- The source route to compare to
public boolean addressEquals(MultiInetSocketAddress that)
public java.lang.String toString()
toString
in class java.lang.Object
path
- The path
public void toStringShort(java.lang.StringBuffer result)
public java.net.InetSocketAddress getInnermostAddress()
local
- my sorted list of InetAddress
public java.net.InetSocketAddress getOutermostAddress()
public int getNumAddresses()
public java.net.InetSocketAddress getAddress(int index)
public static MultiInetSocketAddress build(InputBuffer buf) throws java.io.IOException
buf
-
java.io.IOException
public void serialize(OutputBuffer buf) throws java.io.IOException
buf
-
java.io.IOException
public short getSerializedLength()
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |