cgl.narada.transport.up2p.messages
Class P2PConnectionResponse
java.lang.Object
cgl.narada.transport.up2p.messages.P2PConnectionResponse
- All Implemented Interfaces:
- Serializable
public class P2PConnectionResponse
- extends Object
- implements Serializable
Created on Aug 7, 2006
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
P2PConnectionResponse
public P2PConnectionResponse(SocketAddress publicAddress,
SocketAddress privateAddress,
String magic)
getPrivateAddress
public final SocketAddress getPrivateAddress()
getPublicAddress
public final SocketAddress getPublicAddress()
getMagic
public final String getMagic()
getBytes
public byte[] getBytes()
- Marshalls the object into an array of bytes.
- Returns:
- an array of bytes representing the marshaller object, null if
error occurs
createObjectFromBytes
public static P2PConnectionResponse createObjectFromBytes(byte[] objectBytes)
- Unmarshalls the bytes as a P2PConnectionResponse object
- Parameters:
objectBytes -
- Returns:
- P2PConnectionResponse if successful, null if error occurs
For comments and suggestions please send
e-mail to
The NaradaBrokering Project