void OnDisable() { if (_server == null) { return; } _server.CloseServer(); _server = null; Application.logMessageReceived -= LogCallback; }
void OnEnable() { _server = new AServer(Port); _server.StartServer(); _server.OnClientAddRemove = OnClientAddRemove; _server.OnClientRecvLine = OnClientRecvLine; Application.logMessageReceived += LogCallback; }
public AServerSession(AServer server, Socket client, int id) { _server = server; _socket = client; _id = id; }