cgl.narada.transport.up2p.messages
Class P2PConnectionResponse

java.lang.Object
  extended by 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

Constructor Summary
P2PConnectionResponse(SocketAddress publicAddress, SocketAddress privateAddress, String magic)
           
 
Method Summary
static P2PConnectionResponse createObjectFromBytes(byte[] objectBytes)
          Unmarshalls the bytes as a P2PConnectionResponse object
 byte[] getBytes()
          Marshalls the object into an array of bytes.
 String getMagic()
           
 SocketAddress getPrivateAddress()
           
 SocketAddress getPublicAddress()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

P2PConnectionResponse

public P2PConnectionResponse(SocketAddress publicAddress,
                             SocketAddress privateAddress,
                             String magic)
Method Detail

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