class TIrdaSockAddr : public TSockAddr |
An IrDA socket address.
Private Member Functions | |
---|---|
SIrdaAddr * | addrPtr () |
Inherited Attributes | |
---|---|
TBuf8< KMaxSockAddrSize >::iBuf | |
TDes8::__DECLARE_TEST | |
TDes8::iMaxLength |
IMPORT_C | TIrdaSockAddr | ( | ) |
Default constructor. Sets the protocol family to the value of the constant KIrdaAddrFamily.
IMPORT_C | TIrdaSockAddr | ( | const TSockAddr & | aAddr | ) |
Copy constructor. Assumes that the source address is an IrDA socket address.
const TSockAddr & aAddr | A socket address assumed to be valid IrDA socket address. |
IMPORT_C TIrdaSockAddr & | Cast | ( | const TSockAddr & | aAddr | ) | [static] |
Casts a reference to a general socket address into an IrDA socket address.
const TSockAddr & aAddr | A pointer to a general socket address. |
IMPORT_C TIrdaSockAddr & | Cast | ( | const TSockAddr * | aAddr | ) | [static] |
Casts a reference to a general socket address into an IrDA socket address.
const TSockAddr * aAddr | A pointer to a general socket address. |
IMPORT_C TUint8 | GetCharacterSet | ( | ) | const |
Returns the character set supported by the remote device.
IMPORT_C TUint8 | GetFirstServiceHintByte | ( | ) | const |
Returns the remote device's first service hint byte. Service hint bytes indicate the level of IrLMP support provided by the device.
IMPORT_C TUint8 | GetIrlapVersion | ( | ) | const |
Returns the remote device's IrLAP version number.
This should be 0x00 indicating that the device conforms to the IrDA IrLAP 1.00 specification.
IMPORT_C TUint8 | GetSecondServiceHintByte | ( | ) | const |
Returns the remote device's first service hint byte. Service hint bytes indicate the level of IrLMP support provided by the device.
IMPORT_C TUint8 | GetServiceHintByteCount | ( | ) | const |
Returns the number of service hint bytes for the remote device.
IMPORT_C TBool | GetSniffStatus | ( | ) | const |
Returns the remote device's sniff status, i.e. whether the device is capable of sniffing for IrDA devices.
IMPORT_C TBool | GetSolicitedStatus | ( | ) | const |
Returns the solicited status.
The solicited status indicates whether a discovery was initiated by the host device or a remote device.
IMPORT_C void | SetCharacterSet | ( | const TUint8 | aCharacterSet | ) |
Sets the character set supported by the remote device.
const TUint8 aCharacterSet | One of the TIASCharSet enumerator values defining the character set supported by the device |
IMPORT_C void | SetFirstServiceHintByte | ( | const TUint8 | aFirstServiceHintByte | ) |
Sets the first service hint byte for the remote device. The service hint bytes indicate the level of IrLMP support provided by the device.
const TUint8 aFirstServiceHintByte | The first service hint byte. The individual bits have the following meaning: Bit 0 (0x01) - PnP Compatible Bit 1 (0x02) - PDA/Palmtop Bit 2 (0x04) - Computer Bit 3 (0x08) - Printer Bit 4 (0x10) - Modem Bit 5 (0x20) - Fax Bit 6 (0x40) - LAN Access Bit 7 (0x80) - Extension |
IMPORT_C void | SetHomePort | ( | const TUint8 | aHomePort | ) |
const TUint8 aHomePort |
IMPORT_C void | SetHostDevAddr | ( | const TUint | aHost | ) |
Sets the host device address.
const TUint aHost | The host device address as a 32-bit value. |
IMPORT_C void | SetIrlapVersion | ( | const TUint8 | aIrlapVersion | ) |
Sets the IrLAP version number for the remote device.
This should be 0x00 indicating that the device conforms to the IrDA IrLAP 1.00 specification.
const TUint8 aIrlapVersion | The device's IrLAP version number. |
IMPORT_C void | SetRemoteDevAddr | ( | const TUint | aRemote | ) |
Sets the remote device address.
const TUint aRemote | The remote device address as a 32-bit value. |
IMPORT_C void | SetRemotePort | ( | const TUint8 | aRemotePort | ) |
const TUint8 aRemotePort |
IMPORT_C void | SetSecondServiceHintByte | ( | const TUint8 | aSecondServiceHintByte | ) |
Sets the second service hint byte for the remote device. The service hint bytes indicate the level of IrLMP support provided by the device.
const TUint8 aSecondServiceHintByte | The second service hint byte. The individual bits have the following meaning: Bit 0 (0x01) - Telephony Bit 1 (0x02) - File Server Bit 2 (0x04) - IrCOMM Bit 3 (0x08) - reserved Bit 4 (0x10) - reserved Bit 5 (0x20) - IrOBEX Bit 6 (0x40) - reserved Bit 7 (0x80) - Extension |
IMPORT_C void | SetServiceHintByteCount | ( | const TUint8 | aServiceHintByteCount | ) |
Sets the number of service hint bytes for the remote device.
const TUint8 aServiceHintByteCount | The number of service hint bytes. |
IMPORT_C void | SetSniffStatus | ( | const TBool | aSniff | ) |
Sets the sniff status for the remote device, i.e. whether the device is capable of sniffing for IrDA devices.
const TBool aSniff | True, if the device is capable of sniffing for IrDA devices; false, otherwise. |
IMPORT_C void | SetSolicitedStatus | ( | const TBool | aSolicited | ) |
Sets the solicited status. The solicited status indcates whether a discovery was initiated by the host device or a remote device.
const TBool aSolicited | ETrue, if the discovery was initiated by the host device; EFalse, if discovery was initiated by the remote device. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.