socket

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	Addr net.Addr
	Seq  int
}

type Socket

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

func New

func New() (*Socket, error)

func (*Socket) HasIPv4

func (s *Socket) HasIPv4() bool

func (*Socket) HasIPv6

func (s *Socket) HasIPv6() bool

func (*Socket) Receive

func (s *Socket) Receive(ctx context.Context, ch chan<- Response)

func (*Socket) Resolve

func (s *Socket) Resolve(name string) (net.Addr, string, error)

func (*Socket) Send

func (s *Socket) Send(addr net.Addr, network string, seq int) error

Jump to

Keyboard shortcuts

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