39 if (num == 0
L || num == 0
L)
60 string text =
"ReadMessageBlocking: possible allocation attack with a header of: " + text2 +
" bytes.";
78 string text = num.ToString();
79 string text2 =
"ReceiveLoop: messageQueue is getting big(" +
text +
"), try calling GetNextMessage more often. You can call it more than once per frame!";
92 bool flag = sendPending.
Reset();
class f__AnonymousType0<< Count > j__TPar
Stream.ReadWriteTask _activeReadWriteTask
NetworkStream GetStream()
static bool SendMessagesBlocking(NetworkStream stream, byte[][] messages)
static int messageQueueSizeWarning
bool GetNextMessage([Out] Message message)
ConcurrentQueue< Message > receiveQueue
static bool ReadMessageBlocking(NetworkStream stream, int MaxMessageSize, [Out] byte[] content)
static void SendLoop(int connectionId, TcpClient client, SafeQueue< byte[]> sendQueue, ManualResetEvent sendPending)
static void ReceiveLoop(int connectionId, TcpClient client, ConcurrentQueue< Message > receiveQueue, int MaxMessageSize)