#include <bt_sock.h>
class TL2CAPSockAddr : public TBTSockAddr |
Public Member Functions | |
---|---|
TL2CAPSockAddr() | |
TL2CAPSockAddr(const TSockAddr &) | |
IMPORT_C TL2CAPSockAddr & | Cast(const TSockAddr &) |
IMPORT_C TL2CAPPort | Port() |
IMPORT_C void | SetPort(const TL2CAPPort) |
Inherited Attributes | |
---|---|
TBuf8< KMaxSockAddrSize >::iBuf | |
TDes8::__DECLARE_TEST | |
TDes8::iMaxLength |
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.
See also: TBTSockAddr
IMPORT_C | TL2CAPSockAddr | ( | const TSockAddr & | aSockAddr | ) |
Construct from a BT address.
Parameter | Description |
---|---|
aSockAddr | BT address used to populate the object. |
IMPORT_C TL2CAPSockAddr & | Cast | ( | const TSockAddr & | aAddr | ) | [static] |
Reimplemented from TBTSockAddr::Cast(const TSockAddr &)
Utility function to downcast a TSockAddr to a TBTSockAddr
Returns: TBTSockAddr reference