q3rcon/internal/packet/response.go
2024-11-04 13:33:53 +00:00

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")...)
}