Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: bt_sock.h
Link against: bluetooth.lib

Class TL2CAPSockAddr

class TL2CAPSockAddr : public TBTSockAddr;

Description

L2CAP Socket Address.

Use this class to specify a local or remote L2CAP connection end-point, that is Device Address and PSM/CID. When unconnected, the Port() specifies the PSM, once connected it refers to the CID.

Derivation

Members

Defined in TL2CAPSockAddr:
Cast(), Port(), SetPort(), TL2CAPSockAddr(), TL2CAPSockAddr()

Inherited from TBTSockAddr:
BTAddr(), BTSecurity(), EndBTSockAddrPtr(), SetBTAddr(), SetSecurity()

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

See also:


Construction and destruction


TL2CAPSockAddr()

IMPORT_C TL2CAPSockAddr();

Description

Constructor


TL2CAPSockAddr()

IMPORT_C TL2CAPSockAddr(const TSockAddr &aSockAddr);

Description

Construct from a BT address.

Parameters

const TSockAddr &aSockAddr

BT address used to populate the object.

[Top]


Member functions


Cast()

static IMPORT_C TL2CAPSockAddr &Cast(const TSockAddr &aSockAddr);

Description

Utility function to downcast a TSockAddr to a TBTSockAddr

Parameters

const TSockAddr &aSockAddr

Return value

TL2CAPSockAddr &

TBTSockAddr reference


Port()

IMPORT_C TL2CAPPort Port() const;

Description

Return value

TL2CAPPort


SetPort()

IMPORT_C void SetPort(const TL2CAPPort aHomePort);

Description

Parameters

const TL2CAPPort aHomePort