Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.net.internal.TCPTransport Class Reference
Inheritance diagram for de.fu_berlin.inf.dpp.net.internal.TCPTransport:
de.fu_berlin.inf.dpp.net.internal.ITransport

List of all members.

Public Member Functions

IByteStreamConnection connect (String connectionID, JID peer) throws IOException, InterruptedException
void initialize (Connection connection, IByteStreamConnectionListener listener)
void uninitialize ()
String toString ()

Member Function Documentation

IByteStreamConnection de.fu_berlin.inf.dpp.net.internal.TCPTransport.connect ( String  connectionID,
JID  peer 
) throws IOException, InterruptedException

Establishes a connection to the given JID.

Parameters:
connectionIDan ID used to identify this connection on the remote side
peera resource qualified JID to connect to
Exceptions:
NullPointerExceptionif connectionID or peer is null
IllegalArgumentExceptionif the connection id is an empty string or contains at least one { SESSION_ID_DELIMITER} character
IOExceptionif no connection could be established
InterruptedExceptionif 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.

Parameters:
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.

 All Classes Namespaces Files Functions Variables Enumerations