dialer

package
v0.0.0-...-eca4e8b Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerWithWeight

type ServerWithWeight struct {
	Addr   string
	Weight uint32
}

type TCPDialer

type TCPDialer struct {
	RemoteAddr string
}

func (*TCPDialer) Dial

func (d *TCPDialer) Dial() (net.Conn, uint32, error)

type TCPmultiConn

type TCPmultiConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func (*TCPmultiConn) Close

func (c *TCPmultiConn) Close() error

type TCPmultiDialer

type TCPmultiDialer struct {
	RemoteAddrs []ServerWithWeight
	// contains filtered or unexported fields
}

func NewTCPmultiDialer

func NewTCPmultiDialer(remoteAddrs []ServerWithWeight) *TCPmultiDialer

func (*TCPmultiDialer) Dial

func (d *TCPmultiDialer) Dial() (net.Conn, uint32, error)

Jump to

Keyboard shortcuts

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