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 DHCPDATAPACKET_H |
|
20 #define DHCPDATAPACKET_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <in_sock.h> |
|
24 |
|
25 const TInt KDhcpPacketLength = 0x240; // RFC2131 |
|
26 |
|
27 /** |
|
28 * This class wraps send and received DHCP message. |
|
29 * |
|
30 * @lib dhcppositionprovider |
|
31 * @since S60 3.2 |
|
32 */ |
|
33 class TDhcpBasePacket : public TPtr8 |
|
34 { |
|
35 public: |
|
36 /** |
|
37 * Default constructor. |
|
38 * @since S60 3.2 |
|
39 */ |
|
40 TDhcpBasePacket (); |
|
41 |
|
42 protected: // data |
|
43 |
|
44 /** |
|
45 * Buffer holding the DHCP message |
|
46 */ |
|
47 TUint8 iBuffer[KDhcpPacketLength]; |
|
48 |
|
49 #ifdef _DEBUG |
|
50 public: |
|
51 |
|
52 /** |
|
53 * Method to print trace log about data. |
|
54 */ |
|
55 void PrintTraceLog (); |
|
56 |
|
57 #endif |
|
58 }; |
|
59 |
|
60 #endif // DHCPDATAPACKET_H |