Example #1
0
 public TcpOptionWindowScale(byte scale)
 {
     _padding    = 1;
     _optionKind = TcpOptionKind.WindowScale;
     _size       = 3;
     _scale      = scale;
 }
Example #2
0
 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);
 }
Example #3
0
 public TcpOptionMaxSegmentSize(ushort size)
 {
     _optionKind = TcpOptionKind.MaximumSegmentSize;
     _length     = 4;
     _size       = (ushort)System.Net.IPAddress.HostToNetworkOrder((short)size);
 }