【求助】C++蓝牙连接问题
我是想做一个软件,集成windows自带的bluetooth网络连接的功能,搜索蓝牙设备已经实现了,现在不知道怎样连接,网上基本上都推荐用socket去连接蓝牙的,不过我找不到如何输入pin码匹配,就连msdn的例子都是:
//
// Connect the socket (pSocket) to a given remote socket represented by address (pServerAddr)
//
if ( SOCKET_ERROR == connect(LocalSocket,
(struct sockaddr *) &SockAddrBthServer,
sizeof(SOCKADDR_BTH)) ) {
wprintf(L"=CRITICAL= | connect() call failed. WSAGetLastError=[%d]\n", WSAGetLastError());
SockAddrBthServer.addressFamily = AF_BTH;
SockAddrBthServer.serviceClassId = g_GUID;
SockAddrBthServer.port = 0;