Skip to content

UnixStream / UnixDatagram requires API for sending packet with FDs #2975

@zonyitoo

Description

@zonyitoo

Is your feature request related to a problem? Please describe.

Since v0.3 PollEvented is in public APIs, I couldn't make one by myself.

Describe the solution you'd like

An additional function on UnixStream / UnixSocket, such as send_with_fds that calls libc::sendmsg and recv_with_fds calls libc::recvmsg internally.

Describe alternatives you've considered

  • A way that could let developers to make customized IO objects.
  • AsyncFd? PollEvented?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-tokioArea: The main tokio crateC-feature-acceptedCategory: A feature request that has been accepted pending implementation.C-feature-requestCategory: A feature request.E-help-wantedCall for participation: Help is requested to fix this issue.M-netModule: tokio/net

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions