|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransInterface
Defines the interface of all Transport layer entity implementations.
Nested Class Summary | |
---|---|
static interface |
TransInterface.SocketHandler
Socket callback handler. |
static class |
TransInterface.TransMessage
Super-class of all transport layer packets. |
static interface |
TransInterface.TransTcpInterface
Defines the Transport sub-interface for TCP entities. |
static interface |
TransInterface.TransUdpInterface
Defines the Transport sub-interface for UDP entities. |
Method Summary | |
---|---|
void |
addSocketHandler(int port,
TransInterface.SocketHandler socketCallback)
Register socket handler. |
void |
delSocketHandler(int port)
Unregister socket handler. |
void |
send(Message msg,
NetAddress dst,
int dstPort,
int srcPort,
byte priority)
Send message (from APPLICATON). |
Methods inherited from interface jist.swans.net.NetInterface.NetHandler |
---|
dropNotify, receive, send |
Method Detail |
---|
void send(Message msg, NetAddress dst, int dstPort, int srcPort, byte priority)
msg
- packet payload (usually from application layer)dst
- packet destination addressdstPort
- packet destination portsrcPort
- packet source portpriority
- packet priorityvoid addSocketHandler(int port, TransInterface.SocketHandler socketCallback) throws JistAPI.Continuation
port
- bound socket portsocketCallback
- callback handler
JistAPI.Continuation
- never; blocking eventvoid delSocketHandler(int port) throws JistAPI.Continuation
port
- bound socket port
JistAPI.Continuation
- never; blocking event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |