Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sockets: prototype for ipv6 #47

Merged
merged 7 commits into from
Feb 14, 2024
Merged

sockets: prototype for ipv6 #47

merged 7 commits into from
Feb 14, 2024

Commits on Feb 14, 2024

  1. sockets: prototype for ipv6

    With the current prototype, I'm opting for keeping the transport protocol
    address family agnostic. This means that variants have to be used to distinguish
    between IPv4 and IPv6 addresses, but simplifies the typical usage of data transport
    drastically by not requiring strict type disambiguation.
    
    I might revisit making TCP4/TCP6 sockets a thing when a form of polymorphism exists
    for the language.
    
    Breaking changes:
    
    - resolveIP4 -> resolveIP
    - addressing APIs now return IPEndpoint, which could be either IP4 or IP6 endpoint
    alaviss committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    2577176 View commit details
    Browse the repository at this point in the history
  2. treewide: bump minimum cps to 0.10.1

    This fixes the bug regarding object variant usage
    alaviss committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    60f6581 View commit details
    Browse the repository at this point in the history
  3. syscall(posix): unify sockaddr_in6 definition

    Nim stdlib definition is inconsistent between OS, so we fix it here.
    alaviss committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    24693db View commit details
    Browse the repository at this point in the history
  4. sockets(posix): switch conversion syntax

    NimSkull doesn't bode well with `.type`, switching to `type()` seems to work
    alaviss committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    9a27449 View commit details
    Browse the repository at this point in the history
  5. sockets(posix): use if with posix constants

    For OS/Arch other than linux/amd64, these are importc-ed and cannot be used in static context.
    
    Switch to if to get them working.
    alaviss committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    d4a87e4 View commit details
    Browse the repository at this point in the history
  6. sockets: drop cps bug workaround

    It is now fixed
    alaviss committed Feb 14, 2024
    Configuration menu
    Copy the full SHA
    255ce5b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    df43f6a View commit details
    Browse the repository at this point in the history