Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.net.internal.IByteStreamConnectionListener Interface Reference

List of all members.

Public Member Functions

void receive (final BinaryXMPPExtension extension)
void connectionClosed (String connectionID, JID remoteJID, IByteStreamConnection connection)
void connectionChanged (String connectionID, JID remoteJID, IByteStreamConnection connection, boolean incomingRequest)

Detailed Description

Listener interface used by ITransport and IBytestreamConnection to notify about established or changed connections and incoming XMPP extensions.

Author:
jurke

Member Function Documentation

void de.fu_berlin.inf.dpp.net.internal.IByteStreamConnectionListener.connectionChanged ( String  connectionID,
JID  remoteJID,
IByteStreamConnection  connection,
boolean  incomingRequest 
)

Gets called when a connection change is detected. The IByteStreamConnection connection} must be initialized first by calling IByteStreamConnection#initialize() to be able to receive and send data.

Parameters:
connectionIDthe id of the connection
remoteJIDthe JID of the remote side this connection is connected to
connection
incomingRequesttrue if the connection was a result of a remote connect request, false if the connect request was initiated on the local side
void de.fu_berlin.inf.dpp.net.internal.IByteStreamConnectionListener.connectionClosed ( String  connectionID,
JID  remoteJID,
IByteStreamConnection  connection 
)
void de.fu_berlin.inf.dpp.net.internal.IByteStreamConnectionListener.receive ( final BinaryXMPPExtension  extension)

Gets called when a BinaryXMPPExtension} was received.

Parameters:
extension
 All Classes Namespaces Files Functions Variables Enumerations