Exemple #1
0
 private void SetChannel(int Channel)
 {
     lock (SendLock)
     {
         byte[] Packet = new net_hdr().WriteData(PacketType.NET_SET_CHAN, new byte[] { 0, 0, 0, (byte)Channel });
         AirServConnector.Send(Packet, 0, Packet.Length);
     }
 }
Exemple #2
0
 private void SendPacket(PacketType Command, byte[] data)
 {
     lock (SendLock)
     {
         byte[] Packet = new net_hdr().WriteData(Command, data);
         AirServConnector.Send(Packet, 0, Packet.Length);
     }
 }