Documentation ¶
Index ¶
- type ClientBind
- func (c *ClientBind) Close() error
- func (c *ClientBind) Endpoint() conn.Endpoint
- func (c *ClientBind) Open(port uint16) (fns []conn.ReceiveFunc, actualPort uint16, err error)
- func (c *ClientBind) ParseEndpoint(s string) (conn.Endpoint, error)
- func (c *ClientBind) Reset()
- func (c *ClientBind) Send(b []byte, ep conn.Endpoint) error
- func (c *ClientBind) SetMark(mark uint32) error
- type Device
- type Endpoint
- type ServerBind
- func (s *ServerBind) Abort() error
- func (s *ServerBind) Close() error
- func (s *ServerBind) Open(port uint16) (fns []conn.ReceiveFunc, actualPort uint16, err error)
- func (s *ServerBind) ParseEndpoint(addr string) (conn.Endpoint, error)
- func (s *ServerBind) Send(b []byte, ep conn.Endpoint) error
- func (s *ServerBind) SetMark(mark uint32) error
- func (s *ServerBind) WriteIsThreadUnsafe()
- func (s *ServerBind) WritePacket(buffer *buf.Buffer, destination M.Socksaddr) error
- type SystemDevice
- func (w *SystemDevice) Close() error
- func (w *SystemDevice) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error)
- func (w *SystemDevice) Events() chan wgTun.Event
- func (w *SystemDevice) File() *os.File
- func (w *SystemDevice) Flush() error
- func (w *SystemDevice) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)
- func (w *SystemDevice) MTU() (int, error)
- func (w *SystemDevice) Name() (string, error)
- func (w *SystemDevice) Read(bytes []byte, index int) (int, error)
- func (w *SystemDevice) Start() error
- func (w *SystemDevice) Write(bytes []byte, index int) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientBind ¶
type ClientBind struct {
// contains filtered or unexported fields
}
func NewClientBind ¶
func (*ClientBind) Close ¶
func (c *ClientBind) Close() error
func (*ClientBind) Endpoint ¶
func (c *ClientBind) Endpoint() conn.Endpoint
func (*ClientBind) Open ¶
func (c *ClientBind) Open(port uint16) (fns []conn.ReceiveFunc, actualPort uint16, err error)
func (*ClientBind) ParseEndpoint ¶
func (c *ClientBind) ParseEndpoint(s string) (conn.Endpoint, error)
func (*ClientBind) Reset ¶
func (c *ClientBind) Reset()
func (*ClientBind) SetMark ¶
func (c *ClientBind) SetMark(mark uint32) error
type Endpoint ¶
func (Endpoint) DstToBytes ¶
func (Endpoint) DstToString ¶
func (Endpoint) SrcToString ¶
type ServerBind ¶
type ServerBind struct {
// contains filtered or unexported fields
}
func NewServerBind ¶
func NewServerBind(writeBack N.PacketWriter) *ServerBind
func (*ServerBind) Abort ¶
func (s *ServerBind) Abort() error
func (*ServerBind) Close ¶
func (s *ServerBind) Close() error
func (*ServerBind) Open ¶
func (s *ServerBind) Open(port uint16) (fns []conn.ReceiveFunc, actualPort uint16, err error)
func (*ServerBind) ParseEndpoint ¶
func (s *ServerBind) ParseEndpoint(addr string) (conn.Endpoint, error)
func (*ServerBind) SetMark ¶
func (s *ServerBind) SetMark(mark uint32) error
func (*ServerBind) WriteIsThreadUnsafe ¶
func (s *ServerBind) WriteIsThreadUnsafe()
func (*ServerBind) WritePacket ¶
type SystemDevice ¶
type SystemDevice struct {
// contains filtered or unexported fields
}
func NewSystemDevice ¶
func (*SystemDevice) Close ¶
func (w *SystemDevice) Close() error
func (*SystemDevice) DialContext ¶
func (*SystemDevice) Events ¶
func (w *SystemDevice) Events() chan wgTun.Event
func (*SystemDevice) File ¶
func (w *SystemDevice) File() *os.File
func (*SystemDevice) Flush ¶
func (w *SystemDevice) Flush() error
func (*SystemDevice) ListenPacket ¶
func (w *SystemDevice) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)
func (*SystemDevice) MTU ¶
func (w *SystemDevice) MTU() (int, error)
func (*SystemDevice) Name ¶
func (w *SystemDevice) Name() (string, error)
func (*SystemDevice) Start ¶
func (w *SystemDevice) Start() error
Click to show internal directories.
Click to hide internal directories.