udp

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UDPConn

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

func (*UDPConn) Close

func (c *UDPConn) Close() error

func (*UDPConn) Read

func (c *UDPConn) Read(buf base.Buffer) (int, error)

func (*UDPConn) ReadFrom

func (c *UDPConn) ReadFrom(buf base.Buffer) (n int, a net.Addr, e error)

func (*UDPConn) SetReadTimeout

func (c *UDPConn) SetReadTimeout(timeout int)

func (*UDPConn) SetTimeout

func (c *UDPConn) SetTimeout(timeout int)

func (*UDPConn) SetWriteTimeout

func (c *UDPConn) SetWriteTimeout(timeout int)

func (*UDPConn) Write

func (c *UDPConn) Write(buf base.Buffer) (int, error)

func (*UDPConn) WriteTo

func (c *UDPConn) WriteTo(buf base.Buffer, addr net.Addr) (n int, e error)

type UDPFactory

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

func NewUDPFactory

func NewUDPFactory(driver net.NetDriver) *UDPFactory

func (*UDPFactory) Connect

func (f *UDPFactory) Connect(addr string, args ...int) (*UDPConn, error)

func (*UDPFactory) Connect4

func (f *UDPFactory) Connect4(addr string, args ...int) (*UDPConn, error)

func (*UDPFactory) Connect6

func (f *UDPFactory) Connect6(addr string, args ...int) (*UDPConn, error)

func (*UDPFactory) Listen

func (f *UDPFactory) Listen(addr string, args ...int) (*UDPConn, error)

func (*UDPFactory) Listen4

func (f *UDPFactory) Listen4(addr string, args ...int) (*UDPConn, error)

func (*UDPFactory) Listen6

func (f *UDPFactory) Listen6(addr string, args ...int) (*UDPConn, error)

func (*UDPFactory) Resolve added in v1.0.2

func (f *UDPFactory) Resolve(addr string, args ...int) (net.Addr, error)

func (*UDPFactory) Resolve4 added in v1.0.2

func (f *UDPFactory) Resolve4(addr string, args ...int) (net.Addr, error)

func (*UDPFactory) Resolve6 added in v1.0.2

func (f *UDPFactory) Resolve6(addr string, args ...int) (net.Addr, error)

Jump to

Keyboard shortcuts

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