Skip to content

Add support for ancillary data receiving #445

Closed
@yuguorui

Description

There is currently no way to accept ancillary (control) data from the OS.

In the Unix world, it can be achieved through recvmsg, and in the Windows world, it can be achieved through WSARecvMsg.

One of the typical use cases of ancillary (control) data is IP_PKTINFO, which has been implemented by most mainstream OS to distinguish the IP address and NIC receiving the data packet.

[1] Linux: https://man7.org/linux/man-pages/man7/ip.7.html#:~:text=control%20message%20type.-,IP_PKTINFO,-(since%20Linux%202.2
[2] Windows: https://learn.microsoft.com/en-us/windows/win32/winsock/ip-pktinfo?redirectedfrom=MSDN

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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