public TcpOptionWindowScale(byte scale) { _padding = 1; _optionKind = TcpOptionKind.WindowScale; _size = 3; _scale = scale; }
public TcpOptionTimestamp(uint timestampValue, uint timestampEchoReply) { _padding = 0x0101; _optionKind = TcpOptionKind.Timestamps; _size = 10; _timestampValue = (uint)System.Net.IPAddress.HostToNetworkOrder((int)timestampValue); _timestampEchoReply = (uint)System.Net.IPAddress.HostToNetworkOrder((int)timestampEchoReply); }
public TcpOptionMaxSegmentSize(ushort size) { _optionKind = TcpOptionKind.MaximumSegmentSize; _length = 4; _size = (ushort)System.Net.IPAddress.HostToNetworkOrder((short)size); }