|
|
@ -12,13 +12,13 @@ const (
|
|
|
|
RequestCommandUDP = RequestCommand(0x02)
|
|
|
|
RequestCommandUDP = RequestCommand(0x02)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type RequestOption byte
|
|
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
const (
|
|
|
|
RequestOptionChunkStream = RequestOption(0x01)
|
|
|
|
RequestOptionChunkStream = RequestOption(0x01)
|
|
|
|
RequestOptionConnectionReuse = RequestOption(0x02)
|
|
|
|
RequestOptionConnectionReuse = RequestOption(0x02)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
type RequestOption byte
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (this RequestOption) Has(option RequestOption) bool {
|
|
|
|
func (this RequestOption) Has(option RequestOption) bool {
|
|
|
|
return (this & option) == option
|
|
|
|
return (this & option) == option
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -49,7 +49,7 @@ func (this *RequestHeader) Destination() v2net.Destination {
|
|
|
|
|
|
|
|
|
|
|
|
type ResponseOption byte
|
|
|
|
type ResponseOption byte
|
|
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
const (
|
|
|
|
ResponseOptionConnectionReuse = ResponseOption(1)
|
|
|
|
ResponseOptionConnectionReuse = ResponseOption(1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|