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.
|
- package packet
-
- // PINGREQ represents a PINGREQ Packet.
- type PINGREQ struct {
- base
- }
-
- // NewPINGREQ creates and returns a PINGREQ Packet.
- func NewPINGREQ() Packet {
- // Create a PINGREQ Packet.
- p := &PINGREQ{}
-
- // Set the fixed header to the Packet.
- p.fixedHeader = []byte{TypePINGREQ << 4, 0x00}
-
- // Return the Packet.
- return p
- }
|