示例#1
0
		/// <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);
		}
示例#2
0
		/// <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);
		}
示例#3
0
		/// <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);
		}
示例#4
0
		/// <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);
		}