You Are Here:

Community: Developer Discussion Boards

#1 Old Why the slave's service still by occupied for quite a long time after disconnect? - 2008-03-11, 07:48

Join Date: Dec 2007
Posts: 209
luckyapplehead
Offline
Regular Contributor
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?
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia