server

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Outbound

type Outbound struct {
	// contains filtered or unexported fields
}

Outbound handles server to client tunneling.

func NewOutbound

func NewOutbound(cfg config.Server, log logger.Logger) (out *Outbound, err error)

NewOutbound returns a new Outbound.

func (*Outbound) Establish

func (out *Outbound) Establish(log logger.Logger, outbound config.Outbound, rc net.Conn) error

Establish establishes the tunnel on the given remote connection rc for the given outbound config.

type Server

type Server interface {
	Listen() error
}

A Server listens on a port for running Seikan's tunnels.

func New

func New(cfg config.Server, l logger.Logger) (Server, error)

New returns a new server.

Jump to

Keyboard shortcuts

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