Saros
Distributed Collaborative Editing and Distributed Party Programming
|
Public Member Functions | |
IByteStreamConnection | connect (String connectionID, JID peer) throws IOException, InterruptedException |
void | initialize (Connection connection, IByteStreamConnectionListener listener) |
void | uninitialize () |
Static Public Attributes | |
static final char | SESSION_ID_DELIMITER = ':' |
This interface is used to define various transport methods (probably only XEP 65 SOCKS5, XEP 47 in-band bytestream and XEP 16x Jingle.
IByteStreamConnection de.fu_berlin.inf.dpp.net.internal.ITransport.connect | ( | String | connectionID, |
JID | peer | ||
) | throws IOException, InterruptedException |
Establishes a connection to the given JID.
connectionID | an ID used to identify this connection on the remote side |
peer | a resource qualified JID to connect to |
NullPointerException | if connectionID or peer is null |
IllegalArgumentException | if the connection id is an empty string or contains at least one { SESSION_ID_DELIMITER} character |
IOException | if no connection could be established |
InterruptedException | if the connection establishment was interrupted |
Implemented in de.fu_berlin.inf.dpp.net.internal.TCPTransport.
void de.fu_berlin.inf.dpp.net.internal.ITransport.initialize | ( | Connection | connection, |
IByteStreamConnectionListener | listener | ||
) |
Initializes the transport. After initialization the transport is able to establish connections via connect.
connection | |
listener |
Implemented in de.fu_berlin.inf.dpp.net.internal.ByteStreamTransport, de.fu_berlin.inf.dpp.net.internal.Socks5Transport, and de.fu_berlin.inf.dpp.net.internal.TCPTransport.
void de.fu_berlin.inf.dpp.net.internal.ITransport.uninitialize | ( | ) |
Un-initializes the transport. After un-initialization the transport is not able to establish connections via connect.
Implemented in de.fu_berlin.inf.dpp.net.internal.ByteStreamTransport, de.fu_berlin.inf.dpp.net.internal.Socks5Transport, and de.fu_berlin.inf.dpp.net.internal.TCPTransport.
final char de.fu_berlin.inf.dpp.net.internal.ITransport.SESSION_ID_DELIMITER = ':' [static] |
Delimiter that must be used to encode various arguments into a session id.