Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: bt_sock.h
Link against: bluetooth.lib

Class TRfcommSockAddr

class TRfcommSockAddr : public TBTSockAddr;

Description

Defines the format of an Rfcomm address.

This class uses the TSockAddr data area to hold the address so that it can be passed through the ESOCK boundary. Assumes that the remote RFCOMM instance is always bound to PSM 3 on L2CAP, so there is no way of specifying another remote PSM.

Derivation

Members

Defined in TRfcommSockAddr:
Cast(), TRfcommSockAddr(), TRfcommSockAddr()

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

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

See also:


Construction and destruction


TRfcommSockAddr()

IMPORT_C TRfcommSockAddr();

Description

Constructor


TRfcommSockAddr()

IMPORT_C TRfcommSockAddr(const TSockAddr &aSockAddr);

Description

Constructor that takes a BT socket address.

Parameters

const TSockAddr &aSockAddr

The BT socket address from which this instance is initialised.

[Top]


Member functions


Cast()

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

Description

Utility function to downcast a TSockAddr to a TBTSockAddr

Parameters

const TSockAddr &aSockAddr

Return value

TRfcommSockAddr &

TBTSockAddr reference