Class TCPServer
java.lang.Object
cool.scx.tcp.TCPServer
- All Implemented Interfaces:
ScxTCPServer
TCP 服务器
- Version:
- 0.0.1
- Author:
- scx567888
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiononConnect(ScxConsumer<ScxTCPSocket, ?> connectHandler) options()voidstart(SocketAddress localAddress) voidstop()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cool.scx.tcp.ScxTCPServer
start
-
Constructor Details
-
TCPServer
public TCPServer() -
TCPServer
-
-
Method Details
-
onConnect
- Specified by:
onConnectin interfaceScxTCPServer
-
start
- Specified by:
startin interfaceScxTCPServer- Throws:
IOException
-
stop
public void stop()- Specified by:
stopin interfaceScxTCPServer
-
localAddress
- Specified by:
localAddressin interfaceScxTCPServer
-
options
-