| class TBTSockAddr : public TSockAddr |
Bluetooth socket address
Stores bluetooth device address, and security - these are common to all Bluetooth addresses
| Public Member Functions | |
|---|---|
| TBTSockAddr () | |
| TBTSockAddr (const TSockAddr &) | |
| IMPORT_C TBTDevAddr | BTAddr () |
| IMPORT_C TBTServiceSecurity | BTSecurity () |
| IMPORT_C TBTSockAddr & | Cast (const TSockAddr &) |
| IMPORT_C void | SetBTAddr (const TBTDevAddr &) |
| IMPORT_C void | SetSecurity (const TBTServiceSecurity &) |
| Protected Member Functions | |
|---|---|
| IMPORT_C TAny * | EndBTSockAddrPtr () |
| Private Member Functions | |
|---|---|
| TPtr8 | AddressPtr () |
| SBTAddrSecurity & | BTAddrSecStruct () |
| Inherited Attributes | |
|---|---|
| TBuf8< KMaxSockAddrSize >::iBuf | |
| TDes8::__DECLARE_TEST | |
| TDes8::iMaxLength | |
| IMPORT_C | TBTSockAddr | ( | const TSockAddr & | aAddr | ) |
Constructor taking socket address baseclass reference. Rather like a copy constructor
Copies the port number and the entirety of the user data, which conatins the Bluetooth Address and Security Settings
The family type is set to KBTAddrFamily
| const TSockAddr & aAddr | a previously filled TSockAddr |
| IMPORT_C TBTSockAddr & | Cast | ( | const TSockAddr & | aAddr | ) | [static] |
Utility function to downcast a TSockAddr to a TBTSockAddr
| const TSockAddr & aAddr |
| IMPORT_C void | SetBTAddr | ( | const TBTDevAddr & | aRemote | ) |
Sets BT address from a TBTDevAddr .
| const TBTDevAddr & aRemote | Bluetooth device address of remote device |
| IMPORT_C void | SetSecurity | ( | const TBTServiceSecurity & | aSecurity | ) |
Setter Care needs to be taken when setting outgoing security as if a device in the system is using pre-Bluetooth v2.1 hardware then connection attempts may fail.
| const TBTServiceSecurity & aSecurity | reference to const TBTServiceSecurity holding security settings |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.