Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BindCS ¶
type BindCS struct { *Header `cbor:"-"` Identifier string `cbor:"identifier"` Address string `cbor:"address"` }
BindCS is used by the client to open a tunnel. This tunnel will accept a bidirectional connection from client to server (the client start the listener).
type BindCSResp ¶
type BindCSResp struct {
*Header `cbor:"-"`
}
BindCSResp is the response to BindCS.
func NewBindCSResp ¶
func NewBindCSResp(id string) *BindCSResp
NewBindCSResp returns a new BindCSResp.
type BindSC ¶
type BindSC struct { *Header `cbor:"-"` Identifier string `cbor:"identifier"` Address string `cbor:"address"` }
BindSC is used by the client to open a tunnel. This tunnel will accept a bidirectional connection from server to client (the server start the listener).
type BindSCResp ¶
type BindSCResp struct {
*Header `cbor:"-"`
}
BindSCResp is the response to BindSC.
func NewBindSCResp ¶
func NewBindSCResp(id string) *BindSCResp
NewBindSCResp returns a new BindSCResp.
type Header ¶
type Header struct {
// contains filtered or unexported fields
}
Header is a PDU header.
func DecodeHeader ¶
DecodeHeader decodes binary PDU header data.
func (*Header) HeaderSize ¶
HeaderSize returns the size of the header.
type ID ¶
type ID uint8
ID is the identifier of the control PDU.
type InboundsResp ¶
InboundsResp is the response to Inbounds.
func NewInboundsResp ¶
func NewInboundsResp(id string) *InboundsResp
NewInboundsResp returns a new InboundsResp.