This is the mail archive of the
cygwin
mailing list for the Cygwin project.
[1.7] socket(AF_INET6,...)
- From: "Yaakov (Cygwin/X)" <yselkowitz at users dot sourceforge dot net>
- To: cygwin at cygwin dot com
- Date: Tue, 31 Mar 2009 22:34:45 -0500
- Subject: [1.7] socket(AF_INET6,...)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Can anyone explain why the attached STC returns an EAFNOSUPPORT?
Yaakov
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEAREIAAYFAknS4NUACgkQpiWmPGlmQSPVCACbBk7k6h16OuvgIr+XOr42jk30
Hq8AoLPvFWT5EZNt4HbPOy9nUqvkzAkt
=OViY
-----END PGP SIGNATURE-----
#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;
}
}
--
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/