Exemplo n.º 1
0
 public void Send(OutPacket outPacket)
 {
     try
     {
         byte[] sendBuffer = outPacket.BuildEncrypted();
         socket.BeginSend(sendBuffer, 0, sendBuffer.Length, SocketFlags.None, new AsyncCallback(SendCallback), null);
     }
     catch
     {
         Disconnect();
     }
 }