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); } }
private void SendPacket(PacketType Command, byte[] data) { lock (SendLock) { byte[] Packet = new net_hdr().WriteData(Command, data); AirServConnector.Send(Packet, 0, Packet.Length); } }