24 if (
newClient.m_ClientSocket.RemoteEndPoint !=
null)
54 if (tcpClient !=
null)
106 if (tcpListener !=
null)
120 if (tcpListener2 !=
null)
136 string text =
"Client.Send: message too big: " + text2 +
". Limit: " +
text3;
162 string text =
"Server.Disconnect connectionId:" + text2;
220 int num = this.connectionId;
230 int num = this.connectionId;
235 int num2 = this.connectionId;
239 int num3 = this.connectionId;
241 Thread thread = this.sendThread;
246 public int connectionId;
class f__AnonymousType0<< Count > j__TPar
TcpClient AcceptTcpClient()
static void Sleep(int millisecondsTimeout)
ConcurrentQueue< Message > receiveQueue
static void SendLoop(int connectionId, TcpClient client, SafeQueue< byte[]> sendQueue, ManualResetEvent sendPending)
SafeQueue< byte[]> sendQueue
ClientToken(TcpClient client)
ManualResetEvent sendPending
string GetClientAddress(int connectionId)
bool Send(int connectionId, byte[] data, int length)
bool Disconnect(int connectionId)
ConcurrentDictionary< int, Server.ClientToken > clients
int NextConnectionId(TcpClient newClient)
static void LogError(object message)