socket

package
v0.0.0-...-ace9c2d Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SO_REUSEPORT = 0x0F
	SO_REUSEADDR = syscall.SO_REUSEADDR
	TCP_SYNCNT   = syscall.TCP_SYNCNT
)

Variables

This section is empty.

Functions

func ConnectPacketAndSend

func ConnectPacketAndSend(ctx context.Context, network, addr string)

func Dial

func Dial(ctx context.Context, network, localAddr, remoteAddr string) (conn net.Conn, err error)

func DialPacket

func DialPacket(ctx context.Context, network, addr string) (conn *net.UDPConn, err error)

func DialTLS

func DialTLS(ctx context.Context, network, addr string, conf *tls.Config) (conn *tls.Conn, err error)

func DialTLS1

func DialTLS1(ctx context.Context, network, addr string, conf *tls.Config) (conn *tls.Conn, err error)

func Listen

func Listen(ctx context.Context, network, addr string) (ln net.Listener, err error)

func ListenPacket

func ListenPacket(ctx context.Context, network, addr string) (conn net.PacketConn, err error)

func ListenPacketAndRead

func ListenPacketAndRead(ctx context.Context, network, addr string)

Types

type Handle

type Handle struct {
	H int
}

Jump to

Keyboard shortcuts

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