| Reply | « Previous Thread | Next Thread » |
|
I use the following steps in the slave to make the slave disconnect from master,in order that the slave can start it service again and be connected by another master immediately:
void CBtFShareCommDriver::StopSlaveL() { if(iServiceAdvertiser!=NULL) { delete iServiceAdvertiser; iServiceAdvertiser=NULL; } if(iListener!=NULL) { delete iListener; iListener=NULL; } iListener = CListener::NewL(*this, iSocketServ); iServiceAdvertiser = CServiceAdvertiser::NewL(); } CServiceAdvertiser::~CServiceAdvertiser() { if ( iRecord!=0 ) { iSdpDB.DeleteRecordL(iRecord); iRecord=0; } iSdpDB.Close(); iSdp.Close(); } CListener::~CListener() { Cancel(); iSock.Close(); iListenSock.Close(); } But I found that after completing these steps, slave's services are still being Occupied by the master,that in the top of the simulator, the sign represents the bluetooth is still being included in brackets for quite a long time,which means that even the slave start its services again,it could not be connected by another master during this period. I want to know why the service still be occupied after I close the sdb and socket? What can I do if I want the slave to disconnect the connection of the master and its services will not be occupied immediately, and its can start service again and be connected by another master immediately? |
| luckyapplehead |
| View Public Profile |
| Find all posts by luckyapplehead |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Creating listbox takes long time? | birol.sekerci | Symbian User Interface | 5 | 2004-11-07 20:27 |
| How long should be 6610 charging time? | Eghoist | General Discussion | 1 | 2004-04-03 05:35 |
| Long startup time, splash screen | raimohanska | Mobile Java General | 0 | 2004-02-09 16:49 |
| Conection - how long time it takes? | koperak | Bluetooth Technology | 2 | 2002-12-18 11:48 |
| Querying the status over a long time crashes the connector application | tuender | PC Suite API and PC Connectivity SDK | 1 | 2002-07-25 06:28 |