示例#1
0
 public void Send(NecPacket packet)
 {
     byte[] data;
     try
     {
         data = PacketFactory.Write(packet, this);
     }
     catch (Exception ex)
     {
         _logger.Exception(this, ex);
         return;
     }
     _logger.LogOutgoingPacket(this, packet);
     Socket.Send(data);
 }