Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: bt_sock.h
Link against: bluetooth.lib

Class TBTSockAddr

TBTSockAddr

Support

Supported from 6.1

Description

Base class for Bluetooth socket address classes.

It adds a Bluetooth device address field to the generic socket address type TSockAddr.

Derivation

TBTSockAddrBase class for Bluetooth socket address classes
TBuf8This is a descriptor class which provides a buffer of fixed length for containing, accessing and manipulating TUint8 data
TBufBase8Base class used in the derivation of TBuf8
TDes8Modifiable 8-bit descriptor; abstract class
TDesC8Abstract base class for 8 bit non-modifiable descriptors
TSockAddrRepresents an end point address

Defined in TBTSockAddr:
BTAddr(), SetBTAddr(), TBTSockAddr()

Inherited from TBuf8:
operator=()

Inherited from TDes8:
Append(), AppendFill(), AppendFormat(), AppendFormatList(), AppendJustify(), AppendNum(), AppendNumFixedWidth(), AppendNumFixedWidthUC(), AppendNumUC(), Capitalize(), Collate(), Copy(), CopyC(), CopyCP(), CopyF(), CopyLC(), CopyUC(), Delete(), Fill(), FillZ(), Fold(), Format(), FormatList(), Insert(), Justify(), LowerCase(), MaxLength(), MaxSize(), Num(), NumFixedWidth(), NumFixedWidthUC(), NumUC(), PtrZ(), Repeat(), Replace(), SetLength(), SetMax(), Swap(), Trim(), TrimAll(), TrimLeft(), TrimRight(), UpperCase(), Zero(), ZeroTerminate(), operator+=(), operator=, operator[]()

Inherited from TDesC8:
Alloc(), AllocL(), AllocLC(), Compare(), CompareC(), CompareF(), Find(), FindC(), FindF(), Left(), Length(), Locate(), LocateF(), LocateReverse(), LocateReverseF(), Match(), MatchC(), MatchF(), Mid(), Ptr(), Right(), Size(), operator!=(), operator<(), operator<=(), operator==(), operator>(), operator>=()

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


Constructors


TBTSockAddr()

TBTSockAddr();

Description

Default constructor.

The socket family is set to Bluetooth (KBTAddrFamily).


TBTSockAddr()

TBTSockAddr(const TSockAddr &aAddr);

Description

Copy constructor.

Parameters

const TSockAddr &aAddr

Socket object to copy

[Top]


Bluetooth address


BTAddr()

TBTDevAddr BTAddr() const;

Description

Gets Bluetooth address.

Return value

TBTDevAddr

Bluetooth address


SetBTAddr()

void SetBTAddr(const TBTDevAddr& aRemote);

Description

Sets Bluetooth address.

Parameters

const TBTDevAddr& aRemote

Bluetooth address