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]

[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/

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