public class TioServer extends Object
| 构造器和说明 |
|---|
TioServer(ServerGroupContext serverGroupContext) |
| 限定符和类型 | 方法和说明 |
|---|---|
ServerGroupContext |
getServerGroupContext() |
Node |
getServerNode() |
AsynchronousServerSocketChannel |
getServerSocketChannel() |
boolean |
isWaitingStop() |
void |
setServerGroupContext(ServerGroupContext serverGroupContext) |
void |
setWaitingStop(boolean isWaitingStop) |
void |
start(String serverIp,
int serverPort) |
boolean |
stop() |
public TioServer(ServerGroupContext serverGroupContext)
serverGroupContext - public ServerGroupContext getServerGroupContext()
public Node getServerNode()
public AsynchronousServerSocketChannel getServerSocketChannel()
public boolean isWaitingStop()
public void setServerGroupContext(ServerGroupContext serverGroupContext)
serverGroupContext - the serverGroupContext to setpublic void setWaitingStop(boolean isWaitingStop)
isWaitingStop - the isWaitingStop to setpublic void start(String serverIp, int serverPort) throws IOException
IOExceptionpublic boolean stop()
Copyright © 2018. All rights reserved.