Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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:


Construction and destruction


TBTSockAddr()

IMPORT_C TBTSockAddr();

Description

Constructor


TBTSockAddr(const TSockAddr &)

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()const

IMPORT_C TBTDevAddr BTAddr() const;

Description

Getter

Return value

TBTDevAddr

The device address specified by this Socket address


SetBTAddr(const TBTDevAddr &)

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(const TBTServiceSecurity &)

IMPORT_C void SetSecurity(const TBTServiceSecurity &aSecurity);

Description

Setter

Parameters

const TBTServiceSecurity &aSecurity

reference to const TBTServiceSecurity holding security settings


BTSecurity()const

IMPORT_C TBTServiceSecurity BTSecurity() const;

Description

Getter

Return value

TBTServiceSecurity

Security settings


Cast(const TSockAddr &)

IMPORT_C static 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()const

protected: IMPORT_C TAny* EndBTSockAddrPtr() const;

Description

Return value

TAny *