Skip to content

std::io::net::unix::UnixStream does not support abstract sockets on Linux. #14194

Closed
@canndrew

Description

@canndrew

Currently, as far as I can tell, there is no way to connect to or listen on unix domain sockets in Linux's abstract socket namespace. I see two ways to add this support:

0: Add functions connect_abstract and connect_abstract_timeout to UnixStream and bind_abstract to UnixListener.
1: Create new traits AbstractStream, AbstractListener and AbstractAcceptor that mimic their Unix* counterparts and put them in either std::io::net::unix or a new module std::io::net::abstract.

I'd be happy to write a patch for this if anyone can suggest which would be the best course of action or suggest a better way to implement this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions