Saros
Distributed Collaborative Editing and Distributed Party Programming
|
Public Member Functions | |
IByteStreamConnection | connect (final String connectionID, final JID peer) throws IOException, InterruptedException |
synchronized void | uninitialize () |
synchronized void | initialize (Connection connection, IByteStreamConnectionListener listener) |
Protected Member Functions | |
IByteStreamConnection | establishBinaryChannel (String connectionIdentifier, String peer) throws XMPPException, IOException, InterruptedException |
IByteStreamConnection | acceptRequest (BytestreamRequest request) throws XMPPException, IOException, InterruptedException |
final synchronized BytestreamManager | getManager () |
final synchronized IByteStreamConnectionListener | getConnectionListener () |
abstract BytestreamManager | createManager (Connection connection) |
abstract ConnectionMode | getNetTransferMode () |
Protected Attributes | |
BytestreamListener | streamListener |
Abstract skeleton for different transport methods.
IByteStreamConnection de.fu_berlin.inf.dpp.net.internal.ByteStreamTransport.acceptRequest | ( | BytestreamRequest | request | ) | throws XMPPException, IOException, InterruptedException [protected] |
Handles a BytestreamRequest requests and returns a IByteStreamConnection. If null is returned the request is handled in different manner (i.e. see {#link Socks5Transport})
request |
InterruptedException | |
XMPPException | |
IOException |
Reimplemented in de.fu_berlin.inf.dpp.net.internal.Socks5Transport.
IByteStreamConnection de.fu_berlin.inf.dpp.net.internal.ByteStreamTransport.connect | ( | final String | connectionID, |
final JID | peer | ||
) | throws IOException, InterruptedException |
abstract BytestreamManager de.fu_berlin.inf.dpp.net.internal.ByteStreamTransport.createManager | ( | Connection | connection | ) | [protected, pure virtual] |
connection |
Implemented in de.fu_berlin.inf.dpp.net.internal.IBBTransport, and de.fu_berlin.inf.dpp.net.internal.Socks5Transport.
IByteStreamConnection de.fu_berlin.inf.dpp.net.internal.ByteStreamTransport.establishBinaryChannel | ( | String | connectionIdentifier, |
String | peer | ||
) | throws XMPPException, IOException, InterruptedException [protected] |
Establishes a IByteStreamConnection to a peer.
peer |
XMPPException | |
IOException | |
InterruptedException |
Reimplemented in de.fu_berlin.inf.dpp.net.internal.Socks5Transport.
final synchronized IByteStreamConnectionListener de.fu_berlin.inf.dpp.net.internal.ByteStreamTransport.getConnectionListener | ( | ) | [protected] |
final synchronized BytestreamManager de.fu_berlin.inf.dpp.net.internal.ByteStreamTransport.getManager | ( | ) | [protected] |
abstract ConnectionMode de.fu_berlin.inf.dpp.net.internal.ByteStreamTransport.getNetTransferMode | ( | ) | [protected, pure virtual] |
synchronized void de.fu_berlin.inf.dpp.net.internal.ByteStreamTransport.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.
Reimplemented in de.fu_berlin.inf.dpp.net.internal.Socks5Transport.
synchronized void de.fu_berlin.inf.dpp.net.internal.ByteStreamTransport.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.
Reimplemented in de.fu_berlin.inf.dpp.net.internal.Socks5Transport.
BytestreamListener de.fu_berlin.inf.dpp.net.internal.ByteStreamTransport.streamListener [protected] |
Handles incoming requests and informs the IBytestreamConnectionListener if a new connection got established