github.com/geniusesgroup/libgo@v0.0.0-20220713101832-828057a9d3d4/tcp/option-partial-order-service-profile.go (about)

     1  /* For license and copyright information please see LEGAL file in repository */
     2  
     3  package tcp
     4  
     5  import "../binary"
     6  
     7  /*
     8    TCP POC-service-profile Option:
     9  
    10           Kind: 10  Length: 3 bytes
    11  
    12                                         1 bit        1 bit    6 bits
    13               +----------+----------+------------+----------+--------+
    14               |  Kind=10 | Length=3 | Start_flag | End_flag | Filler |
    15               +----------+----------+------------+----------+--------+
    16  
    17  */
    18  type optionPartialOrderServiceProfile []byte
    19  
    20  func (o optionPartialOrderServiceProfile) Length() byte { return o[0] }
    21  func (o optionPartialOrderServiceProfile) PartialOrderServiceProfile() uint16 {
    22  	return binary.BigEndian.Uint16(o[1:])
    23  	//
    24  }
    25  func (o optionPartialOrderServiceProfile) NextOption() []byte { return o[3:] }
    26  
    27  func (o optionPartialOrderServiceProfile) Process(s *Socket) error {
    28  	return nil
    29  }