Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]


Unloading the Bluetooth stack

This document shows you how to unload the Bluetooth stack.

[Top]


Purpose

When the Bluetooth stack is no longer required it should be unloaded.

[Top]


How to unload the Bluetooth stack

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.

Basic Procedures

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);

[Top]


See also

You may also be interested in the following: