GetData() public method

Gets the full packet data with a big-endian length prepended onto the payload.
public GetData ( ) : byte[]
return byte[]
Ejemplo n.º 1
0
 /// <summary>
 /// Sends the specified packet on the socket.
 /// </summary>
 /// <param name="packet">The packet.</param>
 public void Send(TcpPacket packet)
 {
     this.Send(packet.GetData());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Sends the specified packet on the socket.
 /// </summary>
 /// <param name="packet">The packet.</param>
 public void Send( TcpPacket packet )
 {
     this.Send( packet.GetData() );
 }