Documentation ¶
Index ¶
- Constants
- func IPv4AddrToByte(in net.IP) [4]byte
- func IPv4ByteToAddr(in [4]byte) net.IP
- func IPv6AddrToByte(in net.IP) [16]byte
- func IPv6ByteToAddr(in [16]byte) net.IP
- type AssociateChannelDestroy
- type AssociateDoneHeader
- type AssociateDoneV6Header
- type AssociateHeader
- type AssociateV6Header
- type CommandHeader
- type DataHeader
- type HTTPLenHeader
- type HttpHeaderHolder
- type PingHeader
- type PongHeader
- type SendHeader
- type SendV6Header
- type StreamConnectDomainHeader
- type StreamConnectDomainHeaderLen
Constants ¶
View Source
const ( CommandByte_Send = iota + 1 CommandByte_SendV6 CommandByte_Associate CommandByte_AssociateV6 CommandByte_AssociateDone CommandByte_AssociateDoneV6 CommandByte_ChannelDestroy CommandByte_Ping CommandByte_Pong )
View Source
const ( CommandByte_Stream_ConnectV4IP = iota + 1 CommandByte_Stream_ConnectV6IP CommandByte_Stream_ConnectDomain )
View Source
const HttpHeaderFlag_AlternativeChannelConnection = 1 << 2
View Source
const HttpHeaderFlag_BoostConnection = 1 << 0
View Source
const HttpHeaderFlag_WebsocketConnection = 1 << 1
Variables ¶
This section is empty.
Functions ¶
func IPv4AddrToByte ¶
func IPv4ByteToAddr ¶
func IPv6AddrToByte ¶
func IPv6ByteToAddr ¶
Types ¶
type AssociateChannelDestroy ¶
type AssociateChannelDestroy struct { //CommandByte uint8 `struc:"uint8"` Channel uint16 `struc:"uint16"` }
type AssociateDoneHeader ¶
type AssociateDoneHeader AssociateHeader
type AssociateDoneV6Header ¶
type AssociateDoneV6Header AssociateV6Header
type AssociateHeader ¶
type AssociateV6Header ¶
type CommandHeader ¶
type CommandHeader struct {
CommandByte uint8 `struc:"uint8"`
}
type DataHeader ¶
type DataHeader struct {
Channel uint16 `struc:"uint16"`
}
type HTTPLenHeader ¶
type HTTPLenHeader struct {
Length int64 `struc:"int64"`
}
WARNING: we assume this header is 8 byte! Since it is used to fill network buffer!
type HttpHeaderHolder ¶
type PingHeader ¶
type PongHeader ¶
type SendHeader ¶
type SendV6Header ¶
type StreamConnectDomainHeaderLen ¶
type StreamConnectDomainHeaderLen struct {
Length uint16 `struc:"uint16"`
}
Click to show internal directories.
Click to hide internal directories.