/// <summary> /// Send the packet via UDP /// </summary> /// <param name="packet">Packet to be sent</param> /// <param name="isForced">Force UDP packet if <code>true</code>, else packet can be sent over TCP</param> public virtual void SendUDP(GSUDPPacketOut packet, bool isForced) { //Fix the packet size packet.WritePacketLength(); SavePacket(packet); SendUDP(packet.GetBuffer(), isForced); }
/// <summary> /// Send the UDP packet without changing any portion of the packet /// </summary> /// <param name="packet">Packet to be sent</param> public void SendUDPRaw(GSUDPPacketOut packet) { SendUDP((byte[]) packet.GetBuffer().Clone(), false); }