Exemple #1
0
 private void TryDequeueAndPostSend()
 {
     byte[] data;
     if (sendQueue.TryDequeue(out data))
     {
         AsyncUserToken dataToken = sendDataToken;
         dataToken.messageBytes  = data;
         dataToken.messageLength = data.Length;
         SendBuffer();
     }
     else
     {
         ResetSendFlag();
     }
 }
Exemple #2
0
 internal bool TryDequeue(out byte[] result)
 {
     return(mSendQueue.TryDequeue(out result));
 }