pseudotcp

package
v0.22.5 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(host string) (conn net.Conn, err error)

Dial haha

func Listen

func Listen(addr string) (listener net.Listener, err error)

Listen opens a Listener

Types

type Listener

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

Listener listens for ptcp connections

func (*Listener) Accept

func (l *Listener) Accept() (conn net.Conn, err error)

Accept accepts a new connection.

func (*Listener) Addr

func (l *Listener) Addr() net.Addr

Addr is the address of the listener.

func (*Listener) Close

func (l *Listener) Close() error

Close closes the listener.

Jump to

Keyboard shortcuts

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