public interface PacketSender
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| Modifier and Type | Method and Description |
|---|---|
int |
getCost()
returns cost of packet transmissions
|
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.
|
void send(byte[] packet)
throws PacketSenderException
PacketSenderExceptionvoid send(byte[] packet,
int len)
throws PacketSenderException
PacketSenderExceptionvoid send(byte[] packet,
int offset,
int len)
throws PacketSenderException
PacketSenderExceptionvoid shutdown()
throws PacketSenderException
PacketSenderExceptionint getCost()
Copyright © 2005-2011 Antonio Carzaniga.
This documentation is maintained by Antonio Carzaniga