github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/tcp/option-window-scale.go (about)

     1  /* For license and copyright information please see the LEGAL file in the code repository */
     2  
     3  package tcp
     4  
     5  import "github.com/GeniusesGroup/libgo/binary"
     6  
     7  type optionWindowScale []byte
     8  
     9  func (o optionWindowScale) Length() byte        { return o[0] }
    10  func (o optionWindowScale) WindowScale() uint16 { return binary.BigEndian.Uint16(o[1:]) }
    11  func (o optionWindowScale) NextOption() []byte  { return o[2:] }
    12  
    13  // handler options -> socket
    14  func (o optionWindowScale) Process(s *Socket) error {
    15  	return nil
    16  }