simple

package
v0.3.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient added in v0.3.3

func NewServer added in v0.3.3

func NewServer(c *listener.Inbound_Tcpudp) (netapi.Listener, error)

Types

type PacketDirectKey added in v0.3.3

type PacketDirectKey struct{}

type Server added in v0.3.3

type Server struct {
	net.Listener
	net.PacketConn
	// contains filtered or unexported fields
}

func (*Server) Close added in v0.3.3

func (s *Server) Close() error

func (*Server) Packet added in v0.3.3

func (s *Server) Packet(ctx context.Context) (net.PacketConn, error)

func (*Server) Stream added in v0.3.3

func (s *Server) Stream(ctx context.Context) (net.Listener, error)

type Simple

type Simple struct {
	netapi.EmptyDispatch
	// contains filtered or unexported fields
}

func (*Simple) Conn

func (c *Simple) Conn(ctx context.Context, _ netapi.Address) (net.Conn, error)

func (*Simple) PacketConn

func (c *Simple) PacketConn(ctx context.Context, addr netapi.Address) (net.PacketConn, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL