int err = 0;
WORD wVersion;
WSADATA wsaData;
wVersion = MAKEWORD( 2, 2);
err = WSAStartup(wVersion, &wsaData);
if ( err != 0 )
{
DEBUGMSG(TRUE,(TEXT ("ERROR! WSAStartup()!!\r\n")));
}
/* Confirm that the WinSock DLL supports 2.2.*/ if ( LOBYTE(
wsaData.wVersion ) != 2 ||
HIBYTE( wsaData.wVersion ) != 2 ) {
DEBUGMSG(TRUE,(TEXT ("ERROR! No usable Winsock2 DLL found\r\n")));
WSACleanup( );
}
else
{
if ((sockFd = socket(AF_INET, SOCK_RAW, htons(97))) < 0)
{
DEBUGMSG(TRUE,(TEXT ("ERROR! socket() call failed!!\r\n")));
WSACleanup( );
}
else
{
/* OK to send packet */
--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
My BLOG http://geekswithblogs.net/bruceeitman
EuroTech Inc.
www.EuroTech.com
"am" <a...@discussions.microsoft.com> wrote in message
news:987CE8AE-A454-419C...@microsoft.com...
So, id the answer a sure no? There seems to be "architectural support" at
least, going by the APIs in winsock2.h
--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
My BLOG http://geekswithblogs.net/bruceeitman
EuroTech Inc.
www.EuroTech.com
"am" <a...@discussions.microsoft.com> wrote in message
news:73771EAE-D622-46AE...@microsoft.com...