|
Siena (v.1.5.5) API documentation | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PacketSender
packet sender. Abstraction of a primitive communication mechanism for sending packets. Packets are chunks of bytes. A packet sender sends packets to a specific destination. Every implementation of Siena uses one or more packet senders to communicate with remote clients and servers.
Packet senders are constructed by PacketSenderFactory
using the URI of the corresponding receiver as a parameter.
This version of Siena includes only a simple implementation on top of TCP/IP. Future versions will include support for encapsulation into other protocols, such as SMTP and HTTP.
PacketReceiver
Method Summary | |
---|---|
void |
send(byte[] packet)
sends a packet. |
void |
send(byte[] packet,
int len)
sends a packet. |
void |
send(byte[] packet,
int offset,
int len)
sends a packet. |
void |
shutdown()
closes this sender. |
Method Detail |
---|
void send(byte[] packet) throws PacketSenderException
PacketSenderException
void send(byte[] packet, int len) throws PacketSenderException
PacketSenderException
void send(byte[] packet, int offset, int len) throws PacketSenderException
PacketSenderException
void shutdown() throws PacketSenderException
PacketSenderException
|
Siena (v.1.5.5) API documentation | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |