Skip to content

Add IPv6 address and TCP/UDP support to std::net #433

Closed

Description

@LunaStev

Summary

Platform socket providers expose AF_INET6, but the public network layer defines only NetAddrV4 and IPv4-specific bind, connect, accept, TCP, and UDP helpers.

Relevant code

  • std/net/address.wave
  • std/net/socket_base.wave
  • std/net/tcp.wave
  • std/net/udp.wave

Scope

Introduce a portable IPv6 address representation and wire it through the socket, TCP, and UDP layers without breaking existing IPv4 APIs.

Acceptance criteria

  • Public types represent a 128-bit IPv6 address, port, and any required scope identifier.
  • Native sockaddr conversion is correct on Linux, macOS, Windows, and FreeBSD providers.
  • TCP bind/connect/accept and UDP send/receive support IPv6.
  • Loopback and unspecified-address constructors are provided.
  • Byte-order and structure-layout assumptions are isolated and tested.
  • Native CI runs at least loopback TCP and UDP IPv6 smoke tests where the runner supports IPv6.
  • Existing IPv4 examples and tests remain unchanged.

Activity

  1. added
    enhancement
    help wanted
    feature request
    cross-platform
    on Aug 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cross-platformenhancementfeature requesthelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions