

Setting address family to AF_BTH indicates winsock2 to use Bluetooth sockets Wprintf(L"=CRITICAL= | HeapAlloc failed | out of memory, gle = \n", GetLastError())

HRESULT res pszData = (wchar_t *) HeapAlloc(GetProcessHeap(), SOCKADDR_BTH SockAddrBthServer = RemoteAddr ULONG RunClientMode(_in SOCKADDR_BTH RemoteAddr, _in int iMaxCxnCycles) remote socket, transfer some data over the connection and closes the connection. RunClientMode runs the application in client mode. UlRetCode = RunClientMode(RemoteBthAddr, g_ulMaxCxnCycles) Wprintf(L"-FATAL- | Unable to get address of the remote radio having formated address-string %s\n", g_szRemoteAddr) UlRetCode = WSAStringToAddressW(g_szRemoteAddr, Get address from formated address-string of the remote device and Other applications may provide more generic treatment. Note, this app "prefers" the name if provided, but it is app-specific Wprintf(L"-FATAL- | Unable to initialize Winsock version 2.2\n") UlRetCode = WSAStartup(MAKEWORD(2, 2), &WSAData)

Wprintf(L"-FATAL- | Error in parsing command line\n") Int _cdecl wmain(_in int argc, _in_ecount(argc)wchar_t *argv) ULONG ParseCmdLine(_in int argc, _in_ecount(argc) wchar_t * argv) ULONG RunClientMode(_in SOCKADDR_BTH ululRemoteBthAddr, _in int iMaxCxnCycles = 1) // 1 extra for trailing NULL character I am attaching the client side code in which i have made changes to the port of the server from 0 to 1. Please help me with this as soon as possible. When trying to connect two CSR development board's using the spp profile i could see the data being Is sent or not and i could see the spp data packet on the server side page inquiry but unable to receive the message in the handler of the server side. I have also used a air sniffer to check whether the spp data packet The connection has been established and i could see the spp server connect confirm message on the server side but unable to receive the packet with the spp data. On the client side, I am passing the address of the server I want to transfer the data using the spp profile and display that data on the server side's terminal. I am running the sample bluetooth application a client and a CSR development board as a server. I am trying to run the sample application that has been given for creating a Bluetooth connection between two devices using the winsock library.
