#include <btsockaddr.h>
class TBTSockAddr : public TSockAddr |
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() |
Inherited Attributes | |
---|---|
TBuf8< KMaxSockAddrSize >::iBuf | |
TDes8::__DECLARE_TEST | |
TDes8::iMaxLength |
Bluetooth socket address
Stores bluetooth device address, and security - these are common to all Bluetooth addresses
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
Parameter | Description |
---|---|
aAddr | a previously filled TSockAddr |
IMPORT_C TBTDevAddr | BTAddr | ( | ) | const |
Getter
Returns: The device address specified by this Socket address
IMPORT_C TBTSockAddr & | Cast | ( | const TSockAddr & | aAddr | ) | [static] |
Utility function to downcast a TSockAddr to a TBTSockAddr
Returns: TBTSockAddr reference
IMPORT_C void | SetBTAddr | ( | const TBTDevAddr & | aRemote | ) |
Sets BT address from a TBTDevAddr.
Parameter | Description |
---|---|
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.
Parameter | Description |
---|---|
aSecurity | reference to const TBTServiceSecurity holding security settings |