This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: AF_HYPERV address family not supported

On 2019-07-04 11:23, Biswapriyo Nath wrote:
> Here is the sample code that I've tried.
> #include <sys/socket.h>
> #include <stdio.h>
> #include <errno.h>
> #ifndef AF_HYPERV
> #define AF_HYPERV 34
> #endif
> int main(void)
> {
> int s = socket(AF_HYPERV, SOCK_STREAM, 0);
>    if (s > 0)
>        printf("success\n");
>    else
>        printf("%s\n", strerror(errno));
> }
> Is this by-design? Or am I doing anything wrong?

That's a Windows API - the Linux equivalent is AF_VSOCK: please feel free to
submit support patches to cygwin-patches to support AF_VSOCK using AF_HYPERV or
newlib to support AF_VSOCK.

You could check to see if the Windows oriented mingw or msys projects support

These interfaces are fairly new and OS specific so there is not yet a facility
abstraction to support.

Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]