scramblesuit

package
v0.0.0-...-297ae51 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: BSD-2-Clause, BSD-3-Clause Imports: 25 Imported by: 0

Documentation

Overview

Package scramblesuit provides an implementation of the ScrambleSuit obfuscation protocol. The implementation is client only.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotSupported is the error returned for a unsupported operation.
	ErrNotSupported = errors.New("scramblesuit: operation not supported")

	// ErrInvalidPacket is the error returned when a invalid packet is received.
	ErrInvalidPacket = errors.New("scramblesuit: invalid packet")
)
View Source
var (

	// ErrInvalidHandshake is the error returned when the handshake fails.
	ErrInvalidHandshake = errors.New("invalid handshake")
)

Functions

This section is empty.

Types

type Transport

type Transport struct{}

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

func (*Transport) ClientFactory

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

ClientFactory returns a new ssClientFactory instance.

func (*Transport) Name

func (t *Transport) Name() string

Name returns the name of the ScrambleSuit transport protocol.

func (*Transport) ServerFactory

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

ServerFactory will one day return a new ssServerFactory instance.

Jump to

Keyboard shortcuts

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