Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSmuxDialer ¶
NewSmuxDialer returns a smux dialer.
Types ¶
type SmuxClient ¶
type SmuxClient struct {
// contains filtered or unexported fields
}
SmuxClient struct.
func (*SmuxClient) Dial ¶
func (s *SmuxClient) Dial(network, addr string) (net.Conn, error)
Dial connects to the address addr on the network net via the proxy.
func (*SmuxClient) DialUDP ¶
func (s *SmuxClient) DialUDP(network, addr string) (net.PacketConn, net.Addr, error)
DialUDP connects to the given address via the proxy.
type SmuxServer ¶
type SmuxServer struct {
// contains filtered or unexported fields
}
SmuxServer struct.
func (*SmuxServer) ListenAndServe ¶
func (s *SmuxServer) ListenAndServe()
ListenAndServe listens on server's addr and serves connections.
func (*SmuxServer) ServeStream ¶
func (s *SmuxServer) ServeStream(c *smux.Stream)
ServeStream serves a smux stream.
Click to show internal directories.
Click to hide internal directories.