GetData() public method

Gets the full packet data with a big-endian length prepended onto the payload.
public GetData ( ) : byte[]
return byte[]
Beispiel #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());
 }
Beispiel #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() );
 }