Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Trouble with socket&bluetooth (http://www.go4expert.com/forums/trouble-with-socketbluetooth-t213/)

boris 29Nov2004 14:32

Trouble with socket&bluetooth
 
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). :confused:

Does anyone have any experience with bluetooth socket in windows???

elec.shabnam 26Feb2008 17:12

Re: Trouble with socket&bluetooth
 
you can check the list of error messages ,then decide because every error has a specific no.


All times are GMT +5.5. The time now is 06:33.