PacketHeader Constructor NetworkComms.Net Help
Creates a new packetHeader

Namespace: NetworkCommsDotNet
Assembly: NetworkCommsDotNet (in NetworkCommsDotNet.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax

public PacketHeader(
	string packetTypeStr,
	long payloadPacketSize,
	SendReceiveOptions sendReceiveOptions = null,
	string requestedReturnPacketTypeStr = null,
	string checkSumHash = null
)

Parameters

packetTypeStr
Type: OnlineSystem String
The packet type to be used.
payloadPacketSize
Type: OnlineSystem Int64
The size on bytes of the payload
sendReceiveOptions (Optional)
Type: NetworkCommsDotNet SendReceiveOptions
Send receive options which may contain header relevant options.
requestedReturnPacketTypeStr (Optional)
Type: OnlineSystem String
An optional field representing the expected return packet type
checkSumHash (Optional)
Type: OnlineSystem String
An optional field representing the payload checksum
See Also