Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.net.internal.IByteStreamConnection Interface Reference
Inheritance diagram for de.fu_berlin.inf.dpp.net.internal.IByteStreamConnection:
de.fu_berlin.inf.dpp.net.internal.BinaryChannelConnection

List of all members.

Public Member Functions

JID getPeer ()
void close ()
boolean isConnected ()
void initialize ()
void send (TransferDescription data, byte[] content) throws IOException
String getConnectionID ()
ConnectionMode getMode ()

Detailed Description

A IConnection is responsible for sending data to a particular user


Member Function Documentation

void de.fu_berlin.inf.dpp.net.internal.IByteStreamConnection.close ( )
String de.fu_berlin.inf.dpp.net.internal.IByteStreamConnection.getConnectionID ( )

Returns the connection id of this connection.

Returns:
the connection id or null if the connection has no id

Implemented in de.fu_berlin.inf.dpp.net.internal.BinaryChannelConnection.

ConnectionMode de.fu_berlin.inf.dpp.net.internal.IByteStreamConnection.getMode ( )
JID de.fu_berlin.inf.dpp.net.internal.IByteStreamConnection.getPeer ( )
void de.fu_berlin.inf.dpp.net.internal.IByteStreamConnection.initialize ( )

Initializes the byte stream connection. After the initialization is performed the byte stream connection must be able to send and receive data.

Implemented in de.fu_berlin.inf.dpp.net.internal.BinaryChannelConnection.

boolean de.fu_berlin.inf.dpp.net.internal.IByteStreamConnection.isConnected ( )
void de.fu_berlin.inf.dpp.net.internal.IByteStreamConnection.send ( TransferDescription  data,
byte[]  content 
) throws IOException

If this call returns the data has been send successfully, otherwise an IOException is thrown with the reason why the transfer failed.

Parameters:
dataThe data to be sent.
Exceptions:
IOExceptionif the send failed Send the given data as a blocking operation.

Implemented in de.fu_berlin.inf.dpp.net.internal.BinaryChannelConnection.

 All Classes Namespaces Files Functions Variables Enumerations