equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef DHCPDATARESPONSEPACKET_H |
|
20 #define DHCPDATARESPONSEPACKET_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <in_sock.h> |
|
24 #include "dhcpdatapacket.h" |
|
25 #include "dhcpconstants.h" |
|
26 |
|
27 /** |
|
28 * This class wraps the DHCP response message for location |
|
29 * query request |
|
30 * |
|
31 * @lib |
|
32 * @since S60 3.2 |
|
33 */ |
|
34 class TDhcpDataResponsePacket : public TDhcpBasePacket |
|
35 { |
|
36 public: |
|
37 |
|
38 /** |
|
39 * Default constructor. |
|
40 * @since S60 3.2 |
|
41 */ |
|
42 TDhcpDataResponsePacket (); |
|
43 |
|
44 /** |
|
45 * Parses the DHCP ack message |
|
46 * @since S60 3.2 |
|
47 * @returns KErrNone If both or other option found. |
|
48 * KErrNotFound If magic cookie can't located or no support |
|
49 * options found from entered buffer. |
|
50 */ |
|
51 TInt ParseDHCPAck(); |
|
52 |
|
53 public: // data |
|
54 |
|
55 /** |
|
56 * DHCP message identifier |
|
57 */ |
|
58 TInt iXid; |
|
59 |
|
60 /** |
|
61 * Parsed geoConf data, length fixed to 16 bytes |
|
62 */ |
|
63 TBuf8<KDhcpMaxResponseDhcpGeoConfLength> iGeoConf; |
|
64 |
|
65 /** |
|
66 * Parsed civic address data |
|
67 */ |
|
68 TBuf8<KDhcpMaxDhcpCivicAddressLength> iCivicAddress; |
|
69 |
|
70 }; |
|
71 |
|
72 #endif // DHCPDATARESPONSEPACKET_H |
|
73 |