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

List of all members.

Public Member Functions

void sendPacket (Packet packet) throws IOException
void sendPacketExtension (JID jid, PacketExtension extension)
void send (JID recipient, PacketExtension extension) throws IOException
void send (String connectionID, JID recipient, PacketExtension extension) throws IOException

Detailed Description

A humble interface that is responsible for network functionality. The idea behind this interface is to only encapsulates the least possible amount of functionality - the one that can't be easily tested.

Author:
rdjemili

Member Function Documentation

void de.fu_berlin.inf.dpp.net.ITransmitter.send ( JID  recipient,
PacketExtension  extension 
) throws IOException
void de.fu_berlin.inf.dpp.net.ITransmitter.send ( String  connectionID,
JID  recipient,
PacketExtension  extension 
) throws IOException

Sends the given PacketExtension to the given JID using a direct stream connection. The connection must be already established to the recipient with the given id.

Parameters:
connectionIDthe id of the connection
recipientthe recipient of the extension
extensionthe extension to send
Exceptions:
IOExceptionif an I/O error occurs

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

void de.fu_berlin.inf.dpp.net.ITransmitter.sendPacket ( Packet  packet) throws IOException

4, Architecture Overview, Network Layer - Transmitter:

The Network Layer is responsible for communicating with other participants by sending and receiving messages. This Interface is the main entrance point for sending packets. (...) Sends the specified packet to the server.

Parameters:
packetthe packet to send
Exceptions:
IOExceptionif an I/O error occurs or no connection is established to a XMPP server

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

void de.fu_berlin.inf.dpp.net.ITransmitter.sendPacketExtension ( JID  jid,
PacketExtension  extension 
)

Sends the given PacketExtension to the given JID over the currently established XMPP connection. There is no guarantee that this message (extension) will arrive at the recipients side !

Parameters:
jidthe recipient of the extension
extensionthe extension to send

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

 All Classes Namespaces Files Functions Variables Enumerations