Location:
bt_sock.h
Link against: bluetooth.lib
TInquirySockAddr
Supported from 6.1
Socket address class used for remote device inquiries.
Clients construct objects of this type to specify an RHostResolver::GetByAddress()
inquiry request. The handling of the TInquirySockAddr
object passed to this GetByAddress()
varies depending on the values of the flags set through SetAction()
. IAC, service and device class properties are only used when the KHostResInquiry
flag is set.
|
Defined in TInquirySockAddr
:
Action()
, Cast()
, IAC()
, MajorClassOfDevice()
, MajorServiceClass()
, MinorClassOfDevice()
, SetAction()
, SetIAC()
, SetMajorClassOfDevice()
, SetMajorServiceClass()
, SetMinorClassOfDevice()
, TInquirySockAddr()
Inherited from TBTSockAddr
:
BTAddr()
,
SetBTAddr()
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()
TInquirySockAddr(const TSockAddr& aAddr);
Copy constructor.
|
static TInquirySockAddr& Cast(const TSockAddr &aAddr);
Casts a TSockAddr
to a TInquirySockAddr
.
|
|
TUint8 Action() const;
Gets the action flags set to use with the host resolver.
|
void SetAction(TUint8 aFlags);
Sets the action flags set to use with the host resolver.
These flags determine how the host resolver handles calls to RHostResolver::GetByAddress()
. Note the following behaviour for that function according to which flags are set through SetAction()
:
KHostResName
only set: GetByAddress()
looks up the name for the device specified through TBTSockAddr::SetBTAddr()
. It returns a TNameEntry
with the original TInquirySockAddr
and the hostname of the device.
KHostResInquiry
only set: GetByAddress()
performs an inquiry for devices using the IAC specified through SetIAC()
. It returns one or more TNameEntry
records with the device address and class of device fields filled in.
KHostResInquiry
, KHostResName
both set: GetByAddress()
performs an inquiry for devices using the specified IAC, and look up the names of the returned devices. It returns one or more TNameEntry
records with the device address, class of device, and hostname fields filled in.
No flags set: GetByAddress()
returns KErrBadParams
.
|
TUint16 MajorServiceClass() const;
Gets the major service class.
|
void SetMajorServiceClass(TUint16 aClass);
Sets the major service class.
|
TUint8 MajorClassOfDevice() const;
Gets the major device class.
|
void SetMajorClassOfDevice(TUint8 aMajorClassOfDevice);
Sets the major device class.
|
TUint8 MinorClassOfDevice() const;
Gets the minor device class.
|
void SetMinorClassOfDevice(TUint8 aMinorClassOfDevice);
Sets the minor device class.
|
void SetIAC(const TUint aIAC);
Sets the Inquiry Access Code (IAC).
This is only used when the KHostResInquiry
flag set with SetAction()
.
|