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: [1.7] socket(AF_INET6,...)


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/


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