Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: bt_sock.h
Link against: bluetooth.lib

Class TBTSockAddr

class TBTSockAddr : public TSockAddr;

Description

Bluetooth socket address

Stores bluetooth device address, and security - these are common to all Bluetooth addresses

Derivation

Members

Defined in TBTSockAddr:
BTAddr(), BTSecurity(), Cast(), EndBTSockAddrPtr(), SetBTAddr(), SetSecurity(), TBTSockAddr(), TBTSockAddr()

Inherited from TSockAddr:
CmpPort(), Family(), GetUserLen(), Port(), SetFamily(), SetPort(), SetUserLen(), UserPtr()


Construction and destruction


TBTSockAddr()

IMPORT_C TBTSockAddr();

Description

Constructor


TBTSockAddr()

IMPORT_C TBTSockAddr(const TSockAddr &aAddr);

Description

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

Parameters

const TSockAddr &aAddr

a previously filled TSockAddr

[Top]


Member functions


BTAddr()

IMPORT_C TBTDevAddr BTAddr() const;

Description

Getter

Return value

TBTDevAddr

The device address specified by this Socket address


SetBTAddr()

IMPORT_C void SetBTAddr(const TBTDevAddr &aRemote);

Description

Sets BT address from a TBTDevAddr.

Parameters

const TBTDevAddr &aRemote

Bluetooth device address of remote device


SetSecurity()

IMPORT_C void SetSecurity(const TBTServiceSecurity &aSecurity);

Description

Setter

Parameters

const TBTServiceSecurity &aSecurity

reference to const TBTServiceSecurity holding security settings


BTSecurity()

IMPORT_C TBTServiceSecurity BTSecurity() const;

Description

Getter

Return value

TBTServiceSecurity

Security settings


Cast()

static IMPORT_C TBTSockAddr &Cast(const TSockAddr &aAddr);

Description

Utility function to downcast a TSockAddr to a TBTSockAddr

Parameters

const TSockAddr &aAddr

Return value

TBTSockAddr &

TBTSockAddr reference


EndBTSockAddrPtr()

protected: IMPORT_C TAny *EndBTSockAddrPtr() const;

Description

Return value

TAny *