Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

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