dialer

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CheckTicker   = time.Minute
	CheckDeadline = CheckTicker * 8
)

Variables

This section is empty.

Functions

func Put

func Put(c *Conn)

Types

type Conn

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

func NewConn

func NewConn(id int64, c net.Conn) *Conn

func (*Conn) Close

func (c *Conn) Close() (e error)

func (*Conn) Done

func (c *Conn) Done() <-chan struct{}

type Element

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

type Listener

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

func (*Listener) Accept

func (l *Listener) Accept() (net.Conn, error)

Accept waits for and returns the next connection to the listener.

func (*Listener) Addr

func (*Listener) Addr() net.Addr

Addr returns the listener's network address.

func (*Listener) Close

func (l *Listener) Close() (e error)

Close closes the listener. Any blocked Accept operations will be unblocked and return errors.

func (*Listener) Put

func (l *Listener) Put(c *Conn) (e error)

type Listeners

type Listeners struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Listeners gateway splitter

Jump to

Keyboard shortcuts

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