public interface ProtocolHandler
| Modifier and Type | Method and Description |
|---|---|
boolean |
isReadable() |
boolean |
isWriteable() |
void |
onClosed()
Allows udp manager to notify that channel that exists in list
was closed for some reason
|
void |
receive(DatagramChannel channel)
Protocol specific interpretator of the UDP data.
|
void |
send(DatagramChannel channel)
Constructs and sends protocol specific message over UDP.
|
void |
setKey(SelectionKey key) |
void receive(DatagramChannel channel)
channel - the channel to receive datagramsvoid send(DatagramChannel channel)
channel - the channel used for sending.boolean isReadable()
boolean isWriteable()
void setKey(SelectionKey key)
void onClosed()
channel - the channel used for sending.Copyright © 2017 TeleStax, Inc.. All Rights Reserved.