obfs5

package
v0.0.0-...-1add468 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: BSD-2-Clause, BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package obfs5 provides an implementation of the Tor Project's obfs5 obfuscation protocol.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientArgs

type ClientArgs struct {
	*obfs4.ClientArgs
}

type ClientFactory

type ClientFactory struct {
	*obfs4.ClientFactory
}

func (*ClientFactory) Dial

func (cf *ClientFactory) Dial(network, addr string, dialer net.Dialer, args interface{}) (net.Conn, error)

type Conn

type Conn struct {
	*obfs4.Conn
}

func NewClientConn

func NewClientConn(conn net.Conn, args *ClientArgs) (c *Conn, err error)

type ServerFactory

type ServerFactory struct {
	*obfs4.ServerFactory
}

func (*ServerFactory) WrapConn

func (sf *ServerFactory) WrapConn(conn net.Conn) (net.Conn, error)

type Transport

type Transport struct {
	*obfs4.Transport
}

Transport is the obfs5 implementation of the base.Transport interface.

func (*Transport) ClientFactory

func (t *Transport) ClientFactory(stateDir string) (base.ClientFactory, error)

ClientFactory returns a new ClientFactory instance.

func (*Transport) Name

func (t *Transport) Name() string

Name returns the name of the obfs5 transport protocol.

func (*Transport) ServerFactory

func (t *Transport) ServerFactory(stateDir string, args *pt.Args) (s base.ServerFactory, err error)

ServerFactory returns a new ServerFactory instance.

Jump to

Keyboard shortcuts

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