packetconn

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

DO NOT EDIT! Code generated.

Index

Constants

This section is empty.

Variables

View Source
var PacketConnNone _PacketConnNone

Functions

func NewPacketConnDefWithConfig

func NewPacketConnDefWithConfig(ctx context.Context, conf *Config) net.PacketConn

func NewPacketConnRefWithConfig

func NewPacketConnRefWithConfig(ctx context.Context, conf *Config) net.PacketConn

func PacketConnGet

func PacketConnGet(ctx context.Context, name string, defaults net.PacketConn) net.PacketConn

func PacketConnPut

func PacketConnPut(ctx context.Context, name string, def net.PacketConn) net.PacketConn

Types

type Config

type Config struct {
	Name string
	Def  net.PacketConn `json:",omitempty"`
}

type PacketConn

type PacketConn struct {
	Name string
	Def  net.PacketConn
	Ctx  context.Context
}

func (*PacketConn) Close

func (o *PacketConn) Close() error

func (*PacketConn) LocalAddr

func (o *PacketConn) LocalAddr() net.Addr

func (*PacketConn) ReadFrom

func (o *PacketConn) ReadFrom(a []uint8) (int, net.Addr, error)

func (*PacketConn) SetDeadline

func (o *PacketConn) SetDeadline(time time.Time) error

func (*PacketConn) SetReadDeadline

func (o *PacketConn) SetReadDeadline(time time.Time) error

func (*PacketConn) SetWriteDeadline

func (o *PacketConn) SetWriteDeadline(time time.Time) error

func (*PacketConn) WriteTo

func (o *PacketConn) WriteTo(a []uint8, addr net.Addr) (int, error)

Jump to

Keyboard shortcuts

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