transport

package
v0.0.51-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2019 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTCPTransport

func NewTCPTransport(port int, ch chan<- listener.Transport) (net.Listener, error)

func NewTLSTransport

func NewTLSTransport(port int, TLSConfig *tls.Config, ch chan<- listener.Transport) (net.Listener, error)

func NewWSSTransport

func NewWSSTransport(port int, TLSConfig *tls.Config, ch chan<- listener.Transport) (net.Listener, error)

func NewWSTransport added in v0.0.27

func NewWSTransport(port int, ch chan<- listener.Transport) (net.Listener, error)

Types

type Conn

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

func (*Conn) Close

func (c *Conn) Close() error

func (*Conn) LocalAddr

func (c *Conn) LocalAddr() net.Addr

func (*Conn) Read

func (c *Conn) Read(b []byte) (int, error)

func (*Conn) RemoteAddr

func (c *Conn) RemoteAddr() net.Addr

func (*Conn) SetDeadline

func (c *Conn) SetDeadline(t time.Time) error

func (*Conn) SetReadDeadline

func (c *Conn) SetReadDeadline(t time.Time) error

func (*Conn) SetWriteDeadline

func (c *Conn) SetWriteDeadline(t time.Time) error

func (*Conn) Write

func (c *Conn) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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