I use the following code for establishing a connection. If there is no connection available it should prompt the selection of the internet access points otherwise it should use the already existing connection. In the first case it promps the bluetooth selection. How can I avoid this?
The code is placed in a method of an active object.
// check if there are current connections available if (count < 1) { //open and start new connection iConnection->Open(iSocketServ); iConnection->Start(iStatus); currentConnection.Close(); } else { //get connection infos currentConnection.GetConnectionInfo(1, connectionInfo);
//open a copy of the current connection iConnection->Open(iSocketServ); // Start an Outgoing Connection with overrides iConnection->Start(prefs, iStatus); currentConnection.Close(); }