delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/07/04/14:51:29

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=fsWqQroA4mXOLWpN
mm37dvrLgBkvyg2REMVBkXxyWSIPoPMaVWEkn/0q2/Ggwuwi99ijs9xDqak6hqtI
aUgfppYpPWf77CpHXiMT6WpxIjTXeGxloxU+hrFzNPPvqmE+JEotNx9sfe7BuWud
cK/ZycA73AzrAHDeA6Gm0IBPBiA=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=7zwtAlkDkBkUBQ2clPvQLo
5dStM=; b=yfcUBVjP2bJgx2oexeQCos4CBQoKmDFoYm+1m7F4/Ita3lGHYOaarc
EgNS0D+SkeICTRuDC1Lg1zqcqXgrKnQNe7srQtaeRaBEXaMgx7PHKH2f4826Kwna
hNmPNeQ/aYlvK0yspfF6/VrMP6z2U23Ry/rCxSHbDLSx/d5PVHcCk=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy=Nath, nath, Biswapriyo, biswapriyo
X-HELO: smtp-out-so.shaw.ca
Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca
Subject: Re: AF_HYPERV address family not supported
To: cygwin AT cygwin DOT com
References: <CALK-3mKwcNXkhn5GxKc0r=3seOM5S7jx3_L8CkjSkxd9qVE-=g AT mail DOT gmail DOT com>
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Openpgp: preference=signencrypt
Message-ID: <4c32d33c-eab3-c031-52dd-c7ca7ab050f4@SystematicSw.ab.ca>
Date: Thu, 4 Jul 2019 12:50:32 -0600
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2
MIME-Version: 1.0
In-Reply-To: <CALK-3mKwcNXkhn5GxKc0r=3seOM5S7jx3_L8CkjSkxd9qVE-=g@mail.gmail.com>
X-IsSubscribed: yes

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.

	https://cygwin.com/acronyms/#SHTDI

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

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:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019