sock v0.3.0 — Network link queries and IPv6 zone resolution #27
hayabusa-cloud
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Introduction
sockis a zero-allocation socket library for Go, providing TCP, UDP, Unix, SCTP, and raw socket types built directly on thezcallassembly syscall package. All sockets are created withSOCK_NONBLOCKandSOCK_CLOEXECflags and returniofd.FDfile descriptors for integration withio_uringasync I/O. Address serialization is zero-allocation, encoding directly into kernelsockaddrstructures without intermediate heap objects.SO_ZEROCOPY,SCM_RIGHTSfile descriptor passing,TCP_INFOdiagnostics, multicast group management, and UDP batch operations viasendmmsg/recvmmsg.Usage
Highlights
This release adds a
Linktype and Linux-native network link query functions (Links,LinkByName,LinkByIndex) backed byzcall, replacingnet.Interface*calls in IPv6 zone ID resolution. Zone resolution now resolves interface names viazcalland falls back to numeric strings for unknown indices.What's Changed
Features
Linktype andLinks,LinkByName,LinkByIndexfunctions for Linux network link queries viazcall(feat: network link query API and integrate into IPv6 zone resolution #26)net.Interface*; numeric fallback for unknown zone indices (feat: network link query API and integrate into IPv6 zone resolution #26)Documentation
Compatibility
This discussion was created from the release sock v0.3.0 — Network link queries and IPv6 zone resolution.
Beta Was this translation helpful? Give feedback.
All reactions