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 () |
String | toString () |
IByteStreamConnection de.fu_berlin.inf.dpp.net.internal.TCPTransport.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 |
Implements de.fu_berlin.inf.dpp.net.internal.ITransport.
void de.fu_berlin.inf.dpp.net.internal.TCPTransport.initialize | ( | Connection | connection, |
IByteStreamConnectionListener | listener | ||
) |
Initializes the transport. After initialization the transport is able to establish connections via connect.
connection | |
listener |
Implements de.fu_berlin.inf.dpp.net.internal.ITransport.
String de.fu_berlin.inf.dpp.net.internal.TCPTransport.toString | ( | ) |
void de.fu_berlin.inf.dpp.net.internal.TCPTransport.uninitialize | ( | ) |
Un-initializes the transport. After un-initialization the transport is not able to establish connections via connect.
Implements de.fu_berlin.inf.dpp.net.internal.ITransport.