This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: [1.7] socket(AF_INET6,...)
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 1 Apr 2009 10:26:03 +0200
- Subject: Re: [1.7] socket(AF_INET6,...)
- References: <49D2E0D5.9050800@users.sourceforge.net>
- Reply-to: cygwin at cygwin dot com
On Mar 31 22:34, Yaakov S wrote:
> Can anyone explain why the attached STC returns an EAFNOSUPPORT?
>
>
> Yaakov
>
> #pragma CCOD:script no
>
> #include <errno.h>
> #include <string.h>
> #include <stdio.h>
> #include <sys/socket.h>
>
> int
> main(void)
> {
> if (socket(AF_INET6, SOCK_STREAM, 0) < 0) {
> printf("ERROR: %s\n", strerror(errno));
> return 1;
> } else {
> printf("Success!\n");
> return 0;
> }
> }
WJFFM. Do you have a IPv6 enabled machine?
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/