public class NetworkServerBase extends NetworkBase
CoreSocket, fileCacheSize, LogNet, Token| 构造器和说明 |
|---|
NetworkServerBase()
实例化一个默认的对象
Instantiate a default object |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
CloseAction()
服务器关闭的时候需要做的事情
Things to do when the server is down |
int |
getPort() |
boolean |
isStarted() |
void |
ServerClose()
关闭服务器的引擎
Shut down the server's engine |
void |
ServerStart()
使用已经配置好的端口启动服务器的引擎
Use the configured port to start the server's engine |
void |
ServerStart(int port)
指定端口号来启动服务器的引擎
Specify the port number to start the server's engine |
void |
setPort(int port) |
protected void |
setStarted(boolean started) |
protected OperateResult |
SocketAcceptExtraCheck(Socket socket,
InetAddress endPoint)
当客户端的socket登录的时候额外检查的操作,并返回操作的结果信息。
|
protected void |
StartInitialization()
服务器启动时额外的初始化信息,可以用于启动一些额外的服务的操作。
|
protected void |
ThreadPoolLogin(Socket socket,
InetAddress endPoint)
当客户端连接到服务器,并听过额外的检查后,进行回调的方法
Callback method when the client connects to the server and has heard additional checks |
String |
toString()
此处实现了连接Hsl异形客户端的协议,特殊的协议实现定制请联系作者
QQ群:592132877
|
CheckRemoteToken, CloseSocket, CreateSocketAndConnect, CreateSocketAndConnect, CreateSocketAndConnect, ReadStream, Receive, Receive, Receive, ReceiveAndCheckBytes, ReceiveByMessage, ReceiveByMessage, ReceiveBytesContentFromSocket, ReceiveBytesContentFromSocket, ReceiveCommandLineFromSocket, ReceiveCommandLineFromSocket, ReceiveCommandLineFromSocket, ReceiveCommandLineFromSocket, ReceiveFrameWebSocketPayload, ReceiveHslMessage, ReceiveMqttMessage, ReceiveRedisCommand, ReceiveRedisCommandString, ReceiveStringArrayContentFromSocket, ReceiveStringArrayContentFromSocket, ReceiveStringContentFromSocket, ReceiveStringContentFromSocket, ReceiveWebSocketPayload, Send, Send, SendAccountAndCheckReceive, SendBaseAndCheckReceive, SendBytesAndCheckReceive, SendStreamToSocket, SendStringAndCheckReceive, SendStringAndCheckReceive, ThreadPoolCheckTimeOut, WriteStream, WriteStreamFromSocketpublic boolean isStarted()
protected void setStarted(boolean started)
public int getPort()
public void setPort(int port)
protected void ThreadPoolLogin(Socket socket, InetAddress endPoint)
socket - socket对象endPoint - 远程的终结点protected OperateResult SocketAcceptExtraCheck(Socket socket, InetAddress endPoint)
socket - 套接字endPoint - 终结点protected void StartInitialization()
public void ServerStart(int port)
throws IOException
port - 指定一个端口号IOException - 发送的异常public void ServerStart()
throws IOException
IOExceptionprotected void CloseAction()
public void ServerClose()
public String toString()
toString 在类中 NetworkBaseCopyright © 2022. All rights reserved.