Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

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

Inherited from TBTSockAddr:

See also:


Construction and destruction


TRfcommSockAddr()

IMPORT_C TRfcommSockAddr();

Description

Constructor


TRfcommSockAddr(const TSockAddr &)

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

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

Description

Utility function to downcast a TSockAddr to a TBTSockAddr

Parameters

const TSockAddr &aSockAddr

Return value

TRfcommSockAddr &

TBTSockAddr reference