fusedPacketConn

package
v5.48.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FusedPacketConn

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

FusedPacketConn combines two PacketConn socket to create a dual stack PacketConn When sending packet, the correct PacketConn for that destination address will be chosen When receiving packet, will receive packet from either socket Other operations will be done on both conn

func NewFusedPacketConn

func NewFusedPacketConn(ipv4, ipv6 net.PacketConn, readBufSize int, localAddrPreferIPv6 bool) *FusedPacketConn

func (*FusedPacketConn) Close

func (f *FusedPacketConn) Close() error

func (*FusedPacketConn) LocalAddr

func (f *FusedPacketConn) LocalAddr() net.Addr

func (*FusedPacketConn) ReadFrom

func (f *FusedPacketConn) ReadFrom(p []byte) (int, net.Addr, error)

func (*FusedPacketConn) SetDeadline

func (f *FusedPacketConn) SetDeadline(t time.Time) error

func (*FusedPacketConn) SetReadDeadline

func (f *FusedPacketConn) SetReadDeadline(t time.Time) error

func (*FusedPacketConn) SetWriteDeadline

func (f *FusedPacketConn) SetWriteDeadline(t time.Time) error

func (*FusedPacketConn) WriteTo

func (f *FusedPacketConn) WriteTo(p []byte, addr net.Addr) (int, error)

Jump to

Keyboard shortcuts

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