mirror of
https://github.com/onyx-and-iris/q3rcon.git
synced 2024-11-23 17:10:48 +00:00
14 lines
237 B
Go
14 lines
237 B
Go
|
package packet
|
||
|
|
||
|
type Response struct {
|
||
|
magic []byte
|
||
|
}
|
||
|
|
||
|
func NewResponse() Response {
|
||
|
return Response{magic: []byte{'\xff', '\xff', '\xff', '\xff'}}
|
||
|
}
|
||
|
|
||
|
func (r Response) Header() []byte {
|
||
|
return append(r.magic, []byte("print\n")...)
|
||
|
}
|