diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-4F0C4B9D-AA42-59C4-900A-7045FEAAF2F4.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-4F0C4B9D-AA42-59C4-900A-7045FEAAF2F4.dita Wed Mar 31 11:11:55 2010 +0100 @@ -0,0 +1,18 @@ + + + + + +Using security on outgoing sockets

For an outgoing connection, the Bluetooth stack will not, by default, enforce any particular Bluetooth security. If the remote device requires authentication/encryption to connect, then this will be handled by the stack transparently to the application.

How to use security on outgoing sockets

It may occasionally be necessary for the local application to insist on authenticating or encrypting the link. In this case, there are control operations (ioctls) that can be issued on a connected RSocket that will authenticate (ioctl + KHCIAuthRequestIoctl) or encrypt (KHCIEncryptIoctl) the link.

Issuing Authentication Requests

The following example shows the authentication request ioctl being issued.

// Assume you have an opened L2CAP RSocket object, socket +socket.Ioctl(KHCIAuthRequestIoctl, status, NULL, KSolBtHCI); +User::WaitForRequest(status); +if (status==KErrNone) + { + \\ Success...
Where Next?

This tutorial set takes you through all the steps involved in setting up and communicating over a Bluetooth connection.

  • Selecting a Remote Device

  • Inquiring About Remote Devices

  • Inquiring About Services on a Remote Device

  • Connecting and Transferring Data to a Remote Device

  • Using security on outgoing sockets - This document

\ No newline at end of file