Movatterモバイル変換


[0]ホーム

URL:


nettype

package
v1.92.3Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License:BSD-3-ClauseImports:5Imported by:36

Details

Repository

github.com/tailscale/tailscale

Links

Documentation

Overview

Package nettype defines an interface that doesn't exist in the Go net package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeConnPacketConnadded inv1.38.0

type ConnPacketConn interface {net.Connnet.PacketConn}

ConnPacketConn is the interface that's a superset of net.Conn and net.PacketConn.

typePacketConnadded inv1.30.0

type PacketConn interface {WriteToUDPAddrPort([]byte,netip.AddrPort) (int,error)ReadFromUDPAddrPort([]byte) (int,netip.AddrPort,error)io.CloserLocalAddr()net.AddrSetDeadline(time.Time)errorSetReadDeadline(time.Time)errorSetWriteDeadline(time.Time)error}

PacketConn is like a net.PacketConn but uses the newer netip.AddrPortwrite/read methods.

typePacketListener

type PacketListener interface {ListenPacket(ctxcontext.Context, network, addressstring) (net.PacketConn,error)}

PacketListener defines the ListenPacket method as implementedby net.ListenConfig, net.ListenPacket, and tstest/natlab.

typePacketListenerWithNetIPadded inv1.30.0

type PacketListenerWithNetIP interface {ListenPacket(ctxcontext.Context, network, addressstring) (PacketConn,error)}

funcMakePacketListenerWithNetIPadded inv1.30.0

func MakePacketListenerWithNetIP(lnPacketListener)PacketListenerWithNetIP

typeStd

type Std struct{}

Std implements PacketListener using the Go net package's ListenPacket func.

func (Std)ListenPacket

func (Std) ListenPacket(ctxcontext.Context, network, addressstring) (net.PacketConn,error)

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp