q3rcon/internal/packet/response.go

14 lines
237 B
Go
Raw Permalink Normal View History

2024-11-04 13:33:53 +00:00
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")...)
}