public interface DatagramEngine
Modifier and Type | Interface and Description |
---|---|
static interface |
DatagramEngine.Listener
Provides an interface for the notifications from the engine.
|
Modifier and Type | Field and Description |
---|---|
static int |
MAX_REQUEST_SIZE |
static int |
MAX_RESPONSE_SIZE |
Modifier and Type | Method and Description |
---|---|
void |
send(byte[] payload,
InetSocketAddress address)
Main entry point to write the payload in a new datagram.
|
void |
setListener(DatagramEngine.Listener listener)
Allows the setting of the engine listener.
|
void |
start()
Starts the engine.
|
void |
stop()
Stops the engine.
|
static final int MAX_REQUEST_SIZE
static final int MAX_RESPONSE_SIZE
void setListener(DatagramEngine.Listener listener)
listener
- engine listenervoid start()
void stop()
void send(byte[] payload, InetSocketAddress address)
payload
- datagram payloadaddress
- socket address to send payloadCopyright © 2015. All Rights Reserved.