demux

package
v0.0.0-...-d3d74be Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2016 License: ISC, Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SshHandler

func SshHandler(host string) func(inc net.Conn)

Types

type BufConn

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

func NewBufConn

func NewBufConn(c net.Conn) *BufConn

func (*BufConn) Peek

func (wc *BufConn) Peek(n int) ([]byte, error)

func (*BufConn) Read

func (wc *BufConn) Read(p []byte) (int, error)

type DemultiplexingListener

type DemultiplexingListener struct {
	Listener   *net.TCPListener
	SshHandler func(net.Conn)
}

func (DemultiplexingListener) Accept

func (dl DemultiplexingListener) Accept() (net.Conn, error)

func (DemultiplexingListener) Addr

func (dl DemultiplexingListener) Addr() net.Addr

func (DemultiplexingListener) Close

func (dl DemultiplexingListener) Close() error

Jump to

Keyboard shortcuts

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