none
Bluetooth Server App (bind) - error 10049 RRS feed

  • Question

  • - Windows Embedded Compact 2013 w. Bluetooth Support

    i want to bind the created socket to use Bluetooth connection

    Procedure:

    ------------------------------------------------------

    WSAStartup() --> OK

    s = socket(AF_BTH, SOCK_STREAM, BTHPROTO_RFCOMM); --> OK

    bind(s, (SOCKADDR *)&sab, sizeof(sab)) --> Error 10049

    ------------------------------------------------------

      SOCKADDR_BTH sab;

      ...

      ZeroMemory(&sab, sizeof(sab));
      sab.addressFamily = AF_BTH;
      sab.port = BT_PORT_ANY;                       
      sab.serviceClassId = nguiD;                    // GUID_NULL
      sab.btAddr = 0;                   

    ------------------------------------------------------

    Has someone an idea ?

    Thanks,

    Holger

    Wednesday, June 20, 2018 3:30 PM

All replies

  • Holger

    You would do well to download Platform Builder for WEC2013 and review the sample code, especially the control panel code.

    With that said, I am not sure that it is available other than through an MSDN subscription.  The trial doesn't seem have a way to get an installation key anymore.


    Bruce Eitman
    Senior Enginer
    Bruce.Eitman AT Synopsys DOT com
    My BLOG http://geekswithblogs.net/bruceeitman
    I work for
    Synopsys

    Thursday, June 21, 2018 1:47 PM
    Moderator