cgl.narada.transport.up2p.messages
Class P2PConnectionSetupRequest

java.lang.Object
  extended by cgl.narada.transport.up2p.messages.P2PConnectionSetupRequest
All Implemented Interfaces:
Serializable

public class P2PConnectionSetupRequest
extends Object
implements Serializable

Created on Aug 7, 2006

See Also:
Serialized Form

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

Constructor Detail

P2PConnectionSetupRequest

public P2PConnectionSetupRequest(SocketAddress sockAddr,
                                 String magic)
Method Detail

getRequestingPeersPublicAddress

public final SocketAddress getRequestingPeersPublicAddress()

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 P2PConnectionSetupRequest createObjectFromBytes(byte[] objectBytes)
Unmarshalls the bytes as a P2PConnectionSetupRequest object

Parameters:
objectBytes -
Returns:
P2PConnectionSetupRequest if successful, null if error occurs


For comments and suggestions please send e-mail to The NaradaBrokering Project