backedtcp

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

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

func Listen

func Listen(listener net.Listener) *Listener

func (*Listener) Accept

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

type Socket

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

func NewSocket

func NewSocket(wire net.Conn) *Socket

func (*Socket) Close

func (sock *Socket) Close() (err error)

func (*Socket) LocalAddr

func (sock *Socket) LocalAddr() net.Addr

func (*Socket) Read

func (sock *Socket) Read(p []byte) (n int, err error)

func (*Socket) RemoteAddr

func (sock *Socket) RemoteAddr() net.Addr

func (*Socket) Replace

func (sock *Socket) Replace(conn net.Conn) (err error)

func (*Socket) SetDeadline

func (sock *Socket) SetDeadline(time.Time) error

func (*Socket) SetReadDeadline

func (sock *Socket) SetReadDeadline(time.Time) error

func (*Socket) SetWriteDeadline

func (sock *Socket) SetWriteDeadline(time.Time) error

func (*Socket) Write

func (sock *Socket) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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