29 lines
No EOL
579 B
C#
29 lines
No EOL
579 B
C#
using System;
|
|
|
|
namespace JD.Remoting.Details
|
|
{
|
|
/// <summary>
|
|
/// The low level entity that is shared with the engine
|
|
/// </summary>
|
|
internal class Packet
|
|
{
|
|
private readonly PacketHeader _header;
|
|
private readonly byte[] _body;
|
|
|
|
public Packet(PacketHeader header, byte[] body)
|
|
{
|
|
_header = header;
|
|
_body = body;
|
|
}
|
|
|
|
public PacketHeader Header
|
|
{
|
|
get { return _header; }
|
|
}
|
|
|
|
public byte[] Body
|
|
{
|
|
get { return _body; }
|
|
}
|
|
}
|
|
} |