Rice Pastry API

org.mpisws.p2p.transport.rendezvous
Interface ChannelOpener<Identifier>


public interface ChannelOpener<Identifier>


Field Summary
static int SUCCESS
           
 
Method Summary
 Cancellable openChannel(Identifier dest, byte cnnectionType, byte[] credentials, Continuation<java.lang.Integer,java.lang.Exception> deliverResultToMe)
          Open a socket to the dest, then after writing credentials, call notify the higher layer: incomingSocket()
 

Field Detail

SUCCESS

static final int SUCCESS
See Also:
Constant Field Values
Method Detail

openChannel

Cancellable openChannel(Identifier dest,
                        byte cnnectionType,
                        byte[] credentials,
                        Continuation<java.lang.Integer,java.lang.Exception> deliverResultToMe)
Open a socket to the dest, then after writing credentials, call notify the higher layer: incomingSocket()

Parameters:
dest - open a channel to here, and then write credentials
connectionType - TCP, UDP, TCP_AND_UDP, STUN
credentials -
deliverResultToMe -
Returns:

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection