Trouble with socket&bluetooth

Discussion in 'C' started by boris, Nov 29, 2004.

  1. boris

    boris New Member

    Joined:
    Jul 21, 2004
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Software developer
    Location:
    Russia, Moscow
    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???
     
  2. elec.shabnam

    elec.shabnam New Member

    Joined:
    Feb 13, 2008
    Messages:
    102
    Likes Received:
    0
    Trophy Points:
    0
    you can check the list of error messages ,then decide because every error has a specific no.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice