您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

19 行
337 B

  1. package packet
  2. // PINGREQ represents a PINGREQ Packet.
  3. type PINGREQ struct {
  4. base
  5. }
  6. // NewPINGREQ creates and returns a PINGREQ Packet.
  7. func NewPINGREQ() Packet {
  8. // Create a PINGREQ Packet.
  9. p := &PINGREQ{}
  10. // Set the fixed header to the Packet.
  11. p.fixedHeader = []byte{TypePINGREQ << 4, 0x00}
  12. // Return the Packet.
  13. return p
  14. }