TDhcpRawOptionDataPckg Class Reference
class TDhcpRawOptionDataPckg : public TPckgDes< TUint8 > |
TDhcpRawOptionDataPckg - provide simple interface for sending the dhcp raw option.
The data contained in the package is the opcode and the value of the raw option. The length of the buffer is set with the length of the descriptor containing 'the opcode + the raw option data' by the DHCP component.
e.g. The DNS option in DHCP message is represented by opcode 6. On requesting for DNS option using RConnection::Ioctl(), if the data received in the buffer is 6 192 168 0 1 192 168 0 2 then 6 is the DNS option code and 192 168 0 1 and 192 168 0 2 are the IP addresses of DNS servers.
Constructor & Destructor Documentation
TDhcpRawOptionDataPckg(TDes8 &)
TDhcpRawOptionDataPckg | ( | TDes8 & | aDes | ) | [inline] |
Parameters
TDes8 & aDes | User buffer to hold data fetched. |
Member Functions Documentation
SetOpCode(TUint8)
void | SetOpCode | ( | TUint8 | aOpCode | ) | [inline] |
SetOpCode. Make sure the buffer is at least 4 bytes long.
Parameters
TUint8 aOpCode | Desired DHCP Raw option. |
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.