network

package
v0.0.0-...-7277db8 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

network utilities

Index

Constants

This section is empty.

Variables

View Source
var ErrRefused = errors.New("refused")

the operation was actively refused

View Source
var ErrReset = errors.New("reset")

the operation was reset abruptly

View Source
var ErrTimeout = errors.New("timeout")

operation timed out

View Source
var StdDialer = &stdDialer{}

Functions

This section is empty.

Types

type Dialer

type Dialer interface {
	Dial(remote string) (net.Conn, error)
}

generic dialer dials out to a remote address returns a net.Conn and nil on success returns nil and error if an error happens while dialing

func NewDialer

func NewDialer(conf *config.ProxyConfig) (d Dialer)

create a new dialer from configuration

func SocksDialer

func SocksDialer(addr string) Dialer

create a socks dialer that dials out via socks proxy at address

Jump to

Keyboard shortcuts

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