Class TcpServer
java.lang.Object
com.github.steveice10.packetlib.AbstractServer
com.github.steveice10.packetlib.tcp.TcpServer
- All Implemented Interfaces:
Server
-
Constructor Summary
ConstructorsConstructorDescriptionTcpServer(String host, int port, Supplier<? extends PacketProtocol> protocol) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbooleanReturns true if the listener is listening.Methods inherited from class com.github.steveice10.packetlib.AbstractServer
addListener, addSession, bind, bind, bind, close, close, close, getGlobalFlag, getGlobalFlag, getGlobalFlags, getHost, getListeners, getPacketProtocol, getPort, getSessions, hasGlobalFlag, removeListener, removeSession, setGlobalFlag
-
Constructor Details
-
TcpServer
-
-
Method Details
-
isListening
public boolean isListening()Description copied from interface:ServerReturns true if the listener is listening.- Returns:
- True if the listener is listening.
-
bindImpl
-
closeImpl
-