Location:
bt_sock.h
Link against: bluetooth.lib
class TBTSockAddr : public TSockAddr;
Bluetooth socket address
Stores bluetooth device address, and security - these are common to all Bluetooth addresses
TBuf8< KMaxSockAddrSize >
- No description.
TSockAddr
- Represents an end point address
TBTSockAddr
- Bluetooth socket address
Defined in TBTSockAddr
:
BTAddr()
, BTSecurity()
, Cast()
, EndBTSockAddrPtr()
, SetBTAddr()
, SetSecurity()
, TBTSockAddr()
, TBTSockAddr()
Inherited from TSockAddr
:
CmpPort()
,
Family()
,
GetUserLen()
,
Port()
,
SetFamily()
,
SetPort()
,
SetUserLen()
,
UserPtr()
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
|
IMPORT_C TBTDevAddr BTAddr() const;
Getter
|
IMPORT_C void SetBTAddr(const TBTDevAddr &aRemote);
Sets BT address from a TBTDevAddr
.
|
IMPORT_C void SetSecurity(const TBTServiceSecurity &aSecurity);
Setter
|
IMPORT_C TBTServiceSecurity BTSecurity() const;
Getter
|
static IMPORT_C TBTSockAddr &Cast(const TSockAddr &aAddr);
Utility function to downcast a TSockAddr
to a TBTSockAddr
|
|