udp

package
v3.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(udpAddress string) socketconn.SocketConn

New returns new instance of UDP.

Types

type UDP

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

UDP defines UDP socket connection.

func (UDP) Close

func (conn UDP) Close()

Close closes current UDP connection.

func (UDP) Read

func (conn UDP) Read(b []byte) (int, error)

Read returns number of bytes read from the UDP connection.

Jump to

Keyboard shortcuts

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