Package me.tamkungz.nilkit.network
Class NioServer
java.lang.Object
me.tamkungz.nilkit.network.NioServer
- All Implemented Interfaces:
Runnable
-
Constructor Summary
ConstructorsConstructorDescriptionNioServer(int port, int maxFrameSize, PacketRegistry registry, ServerListener listener) NioServer(int port, PacketRegistry registry, ServerListener listener) -
Method Summary
-
Constructor Details
-
NioServer
-
NioServer
-
-
Method Details
-
start
- Throws:
IOException
-
stop
public void stop() -
isRunning
public boolean isRunning() -
getConnectionCount
public int getConnectionCount() -
getConnections
-
getBoundPort
public int getBoundPort()Returns the actual bound port. Useful when the server was created with port 0. -
send
-
broadcast
-
run
public void run()
-