Where can I find sendmsg and recvmsg refered to in https://learn.microsoft.com/en-us/windows/win32/winsock/winsock-ecn

Koen De Schepper 0 Reputation points
2024-07-23T01:15:22.0466667+00:00

See page https://learn.microsoft.com/en-us/windows/win32/winsock/winsock-ecn.
I tried to find sendmsg and recvmsg functions, but couldn't find them. In which header are they defined? Or are these wrapper functions I have to write myself?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,525 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tong Xu - MSFT 2,201 Reputation points Microsoft Vendor
    2024-07-23T02:24:32.93+00:00

    Hi, @Koen De Schepper

    They've already been defined by LPFN_WSARECVMSG and LPFN_WSASENDMSG in parametric functions: void sendEcn and recvEcn. LPFN_WSARECVMSG and LPFN_WSASENDMSG are function pointer type. You shall see the doc: https://learn.microsoft.com/en-us/windows/win32/api/mswsock/nc-mswsock-lpfn_wsarecvmsg

    But it seems the doc of LPFN_WSASENDMSG is missing. I'll checked and report it.

    I'm sure it can run well. It has an official sample: https://github.com/microsoft/Windows-classic-samples/blob/main/Samples/Win7Samples/netds/winsock/sendmsg/SendMsg.cpp

    recvand send


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments