예제 #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);
     }
 }
예제 #2
0
 public void SendAsync(string data)
 {
     _socket.SendAsync(data);
 }