Trouble with socket&bluetooth

boris's Avatar, Join Date: Jul 2004
Go4Expert Member
Hi. I have trouble with follow code:
Code:
	
WSADATA wsaData;
WSAStartup(MAKEWORD( 2, 2 ), &wsaData);
SOCKET s = socket(AF_BTH, SOCK_STREAM, BTHPROTO_RFCOMM);
Result: s = INVALID_SOCKET, and GetLastError() return 10047 (address family is not supported).

Does anyone have any experience with bluetooth socket in windows???
elec.shabnam's Avatar, Join Date: Feb 2008
Ambitious contributor
you can check the list of error messages ,then decide because every error has a specific no.