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

List of all members.

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

Detailed Description

Abstract skeleton for different transport methods.


Member Function Documentation

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})

Parameters:
request
Returns:
IByteStreamConnection or null if handled in different manner
Exceptions:
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]
Parameters:
connection
Returns:
the configured BytestreamManager for the specialized transport method

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.

Parameters:
peer
Returns:
IByteStreamConnection to peer
Exceptions:
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.

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


Member Data Documentation

Handles incoming requests and informs the IBytestreamConnectionListener if a new connection got established

 All Classes Namespaces Files Functions Variables Enumerations