acceptor

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Acceptor

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

Acceptor accepts sockets from a listener and sends to a channel.

func New

func New(lis net.Listener, newConns chan net.Conn, l logger.Logger) *Acceptor

New returns a new Acceptor.

func (*Acceptor) Close

func (a *Acceptor) Close()

Close the acceptor and the listener.

func (*Acceptor) Run

func (a *Acceptor) Run()

Run the acceptor.

Jump to

Keyboard shortcuts

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