Beispiel #1
0
 /// <summary>
 /// Uses the connection and settings of this hub to send a packet to the given endpoint.
 /// </summary>
 public void Send(Packet Packet, IPEndPoint To)
 {
     BufferOutStream bos = new BufferOutStream(this._Settings.SendBuffer, 0);
     Packet.Write(Packet, bos);
     this._UDP.Send(To, Data.FromBuffer(bos.Buffer, 0, bos.Position));
 }