DaveMo
2007-07-22 15:22:19 UTC
Hello,
I'm trying to run some older code that works fine on XP on Vista.
I am running the code from a command prompt running as Administrator.
The following is the code that is failing:
sockListen = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP);
if (INVALID_SOCKET == sockListen) {
fprintf (stderr, "Failed to create socket: %u\n", GetLastError
());
return(FALSE);
}
This code returns error 10022 - Invalid Parameter.
Is there some special privilage needed in Vista to create a socket?
Some other problem maybe?
Thanks,
Dave
I'm trying to run some older code that works fine on XP on Vista.
I am running the code from a command prompt running as Administrator.
The following is the code that is failing:
sockListen = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP);
if (INVALID_SOCKET == sockListen) {
fprintf (stderr, "Failed to create socket: %u\n", GetLastError
());
return(FALSE);
}
This code returns error 10022 - Invalid Parameter.
Is there some special privilage needed in Vista to create a socket?
Some other problem maybe?
Thanks,
Dave