tcp

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2015 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServe

func ListenAndServe(addr string, handler Handler) error

func Serve

func Serve(l net.Listener, handler Handler) error

Types

type Handler

type Handler interface {
	ServeTCP(ctx context.Context, conn net.Conn)
}

type Server

type Server struct {
	Addr      string
	Handler   Handler
	TLSConfig *tls.Config
}

func (*Server) ListenAndServe

func (srv *Server) ListenAndServe() error

func (*Server) Serve

func (srv *Server) Serve(l net.Listener) error

Jump to

Keyboard shortcuts

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