utp

package
v0.4.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2016 License: MIT, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listen

func Listen(network string, laddr string) (net.Listener, error)

func MakeAddr

func MakeAddr(a net.Addr) net.Addr

func ResolveAddr

func ResolveAddr(network string, host string) (net.Addr, error)

Types

type Addr

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

func (*Addr) Child

func (ca *Addr) Child() net.Addr

func (*Addr) Network

func (ca *Addr) Network() string

func (*Addr) String

func (ca *Addr) String() string

type Conn

type Conn struct {
	net.Conn
}

func (*Conn) LocalAddr

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

func (*Conn) RemoteAddr

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

type Dialer

type Dialer struct {
	Timeout   time.Duration
	LocalAddr net.Addr
}

func (*Dialer) Dial

func (d *Dialer) Dial(rnet string, raddr string) (net.Conn, error)

type Listener

type Listener struct {
	*utp.Socket
}

func (*Listener) Accept

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

func (*Listener) Addr

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

Jump to

Keyboard shortcuts

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