Example #1
0
 public void SendAsync(string data, Action completed = null)
 {
     if (completed != null)
     {
         _socket.SendAsync(data, () =>
         {
             lock (sendCallbackQueue)
             {
                 sendCallbackQueue.Enqueue(completed);
             }
         });
     }
     else
     {
         _socket.SendAsync(data);
     }
 }
Example #2
0
 public void SendAsync(string data)
 {
     _socket.SendAsync(data);
 }