Ejemplo n.º 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);
		}
Ejemplo n.º 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);
		}
Ejemplo n.º 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);
		}
Ejemplo n.º 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);
		}