udp

package
v0.17.17 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(destination *net.UDPAddr, name string, _ *identity.TokenId, timeout time.Duration) (transport.Connection, error)

func Listen added in v0.15.83

func Listen(bindAddress *net.UDPAddr, name string, i *identity.TokenId, incoming chan transport.Connection) (io.Closer, error)

Types

type AddressParser

type AddressParser struct{}

func (AddressParser) Parse

func (ap AddressParser) Parse(s string) (transport.Address, error)

type Connection added in v0.15.83

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

func (*Connection) ClearReadTimeout added in v0.15.83

func (self *Connection) ClearReadTimeout() error

func (*Connection) ClearWriteTimeout added in v0.15.83

func (self *Connection) ClearWriteTimeout() error

func (*Connection) Close added in v0.15.83

func (self *Connection) Close() error

func (*Connection) Conn added in v0.15.83

func (self *Connection) Conn() net.Conn

func (*Connection) Detail added in v0.15.83

func (self *Connection) Detail() *transport.ConnectionDetail

func (*Connection) PeerCertificates added in v0.15.83

func (self *Connection) PeerCertificates() []*x509.Certificate

func (*Connection) Reader added in v0.15.83

func (self *Connection) Reader() io.Reader

func (*Connection) SetReadTimeout added in v0.15.83

func (self *Connection) SetReadTimeout(t time.Duration) error

func (*Connection) SetWriteTimeout added in v0.15.83

func (self *Connection) SetWriteTimeout(t time.Duration) error

func (*Connection) Writer added in v0.15.83

func (self *Connection) Writer() io.Writer

Jump to

Keyboard shortcuts

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