You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 line
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. }