|
||
This document shows you how to unload the Bluetooth stack.
When the Bluetooth stack is no longer required it should be unloaded.
The following shows you how to either stop the socket server over which
the Bluetooth stack is running or to simply stop the protocol. If you just want
to stop all Bluetooth operations, for example, you may want to use the
RHandleBase::Close()
method. If, however, you actually
want to switch protocols for some reason it may be more appropriate to use the
RSocketServ::StopProtocol()
method.
Stop the operations running over the Bluetooth stack.
Close the Bluetooth stack.
iSockSvr.Close();
Stop the socket server with
RHandleBase()::Close()
.
Alternatively you may want to stop the protocol but not the socket
server. To do that use: RSocketServ::StopProtocol()
.
iSockSvr.StopProtocol(iProtocolInfo.iAddrFamily,iProtocolInfo.iSockType,iProtocolInfo.iProtocol,status);
You may also be interested in the following: