Documentation ¶
Index ¶
- Constants
- func ParseURL(s string) (server, path, password, transport, mux, domain string, err error)
- func WriteAddr(conn net.Conn, cmd byte, tgt net.Addr) error
- func WriteHeaderAddr(conn net.Conn, header []byte, cmd byte, tgt net.Addr) error
- type Dialer
- type Handler
- type MuxDialer
- type NetDialer
- type TLSDialer
- type WebSocketDialer
Constants ¶
View Source
const HeaderLen = 56
HeaderLen is ...
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct { // Dialer is ... Dialer Dialer // Addr is ... Addr string // contains filtered or unexported fields }
Handler is ...
func NewHandler ¶
NewHandler is ...
func (*Handler) HandlePacket ¶
func (h *Handler) HandlePacket(conn gonet.PacketConn) error
HandlePacket is ...
type MuxDialer ¶
type MuxDialer struct { // Dialer is ... Dialer Dialer // Ticker is ... Ticker *time.Ticker // Config is ... Config smux.Config // MaxConn is ... MaxConn int // EmptyAddr is ... EmptyAddr [1 + 1 + 4 + 2 + 2]byte // contains filtered or unexported fields }
MuxDialer is ...
type TLSDialer ¶
type TLSDialer struct { // Addr is ... Addr string // Config is ... Config tls.Config // Header is ... Header [HeaderLen + 2]byte }
TLSDialer is ...
Click to show internal directories.
Click to hide internal directories.