public class NioServer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected DatagramChannel |
currentChannel |
| Constructor and Description |
|---|
NioServer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addPacketHandler(PacketHandler handler)
Registers a packet handler in the pipeline.
|
boolean |
isRunning()
Indicates whether the server is running or not.
|
void |
start(Selector selector) |
void |
stop() |
protected DatagramChannel currentChannel
public boolean isRunning()
public boolean addPacketHandler(PacketHandler handler)
handler - The packet handler to be registered.public void start(Selector selector)
public void stop()
Copyright © 2017 TeleStax, Inc.. All Rights Reserved.