Saros
Distributed Collaborative Editing and Distributed Party Programming
|
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 |
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.
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.
connectionID | the id of the connection |
recipient | the recipient of the extension |
extension | the extension to send |
IOException | if 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.
packet | the packet to send |
IOException | if 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 !
jid | the recipient of the extension |
extension | the extension to send |
Implemented in de.fu_berlin.inf.dpp.net.internal.XMPPTransmitter.