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

Socket endpoints, in particular reading them from a String #464

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Nov 17, 2020

  1. Implement socket endpoints, in particular reading a string descriptio…

    …n of them
    
    Useful for 3rd-party networking applications that might want to pass around
    service specifiers without worrying whether these are IP addresses, DNS names,
    or UNIX-domain socket paths.
    
    Previously, there was no data type to encapsulate these options together. In
    particular, getAddrInfo had to be used to resolve DNS names into a SockAddr
    before calling connect/bind, but it could not deal with UNIX domain sockets.
    The new function sockNameToAddr takes this role, transparently converting DNS
    names and passing through non-DNS-names unaltered, so that it can be used
    uniformly without worrying about the specific type of input name/address.
    infinity0 committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    e35a67f View commit details
    Browse the repository at this point in the history
  2. Use return instead of pure

    infinity0 committed Nov 17, 2020
    Configuration menu
    Copy the full SHA
    b6c9ef5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    364b4a6 View commit details
    Browse the repository at this point in the history