udp

package
v0.0.0-...-b678ec0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockUDPListener

type MockUDPListener struct {
	ReadFromFunc         func(p []byte) (n int, addr net.Addr, err error)
	WriteToFunc          func(p []byte, addr net.Addr) (n int, err error)
	LocalAddrFunc        func() net.Addr
	SetDeadlineFunc      func(t time.Time) error
	SetReadDeadlineFunc  func(t time.Time) error
	SetWriteDeadlineFunc func(t time.Time) error
	CloseFunc            func() error
}

func (*MockUDPListener) Close

func (l *MockUDPListener) Close() error

func (*MockUDPListener) LocalAddr

func (l *MockUDPListener) LocalAddr() net.Addr

func (*MockUDPListener) ReadFrom

func (l *MockUDPListener) ReadFrom(p []byte) (n int, addr net.Addr, err error)

func (*MockUDPListener) SetDeadline

func (l *MockUDPListener) SetDeadline(t time.Time) error

func (*MockUDPListener) SetReadDeadline

func (l *MockUDPListener) SetReadDeadline(t time.Time) error

func (*MockUDPListener) SetWriteDeadline

func (l *MockUDPListener) SetWriteDeadline(t time.Time) error

func (*MockUDPListener) WriteTo

func (l *MockUDPListener) WriteTo(p []byte, addr net.Addr) (n int, err error)

Jump to

Keyboard shortcuts

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