How can we improve the Windows dev platform?

Add SOCK_SEQPACKET and SOCK_DGRAM to AF_UNIX

Following the comments on the blog post for AF_UNIX, it would be nice to see SOCK_SEQPACKET and/or SOCK_DGRAM support.

https://blogs.msdn.microsoft.com/commandline/2017/12/19/af_unix-comes-to-windows/

Having SOCK_SEQPACKET would remove the burden of distinguishing between independent messages from the user. It also allows greater compatibility for existing POSIX-compatible applications, as was the original goal for implementing AF_UNIX.

This would be comparable to the "message" mode of Windows named pipes, making AF_UNIX sockets a more complete replacement.

14 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Bob shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • WSLUser commented  ·   ·  Flag as inappropriate

        SOCK_SEQPACKET needed to avoid doing message framing and boundary parsing
        socketpair() for IPC is extremely useful between parent-child processes
        SCM_RIGHTS style FD passing for privilege separation necessary from a security perspective
        Need Handle for at least initial AF_Unix connection setup but preferably would work the entire time the session is open.

      Feedback and Knowledge Base