public class TcpServer extends AbstractServer
| Constructor and Description |
|---|
TcpServer(String host,
int port,
Supplier<? extends PacketProtocol> protocol) |
| Modifier and Type | Method and Description |
|---|---|
void |
bindImpl(boolean wait,
Runnable callback) |
void |
closeImpl(boolean wait,
Runnable callback) |
boolean |
isListening()
Returns true if the listener is listening.
|
addListener, addSession, bind, bind, bind, close, close, close, getGlobalFlag, getGlobalFlag, getGlobalFlags, getHost, getListeners, getPacketProtocol, getPort, getSessions, hasGlobalFlag, removeListener, removeSession, setGlobalFlagpublic TcpServer(String host, int port, Supplier<? extends PacketProtocol> protocol)
public boolean isListening()
Serverpublic void bindImpl(boolean wait,
Runnable callback)
public void closeImpl(boolean wait,
Runnable callback)
Copyright © 2022. All rights reserved.