Posted on 2002-04-17
I developed a programme using IRDA SDK .
the following code gives me the error even i included winsock32.lib or ws2_32.lib.
The platform SDK clearly specifies IRDA support.
the WSAGetLastError() returns me 10047
stating "Address family not supported by protocol family. "
this is from MSDN :
if ((ServSock = socket(AF_IRDA, SOCK_STREAM, 0)) == INVALID_SOCKET)
printf("\n error in sockets : %d", WSAGetLastError());
apart form this if any one give me a sample code on IRDA it will be helpful.