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 DHCPDATALOCATIONREQUEST_H |
|
20 #define DHCPDATALOCATIONREQUEST_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <in_sock.h> |
|
24 |
|
25 #include "dhcpdatapacket.h" |
|
26 |
|
27 /** |
|
28 * This class wraps the DHCP location request message. |
|
29 * |
|
30 * @lib sspcontroller |
|
31 * @since S60 4.0 |
|
32 */ |
|
33 class TDhcpLocationRequestPacket : public TDhcpBasePacket |
|
34 { |
|
35 public: |
|
36 |
|
37 /** |
|
38 * Default constructor. |
|
39 * @since S60 3.2 |
|
40 */ |
|
41 TDhcpLocationRequestPacket(); |
|
42 |
|
43 /** |
|
44 * Constructs DHCP location request message. |
|
45 * @since S60 3.2 |
|
46 * @param aLocalIp local IP address |
|
47 * @param aMacAddr local hardware address |
|
48 * @return |
|
49 */ |
|
50 void MakeDhcpInformMsg ( TUint32 aLocalIp, const TDesC8& aMacAddr ); |
|
51 |
|
52 public: // data |
|
53 |
|
54 /* |
|
55 * Return used transaction id in this dhcp message. |
|
56 * @since S60 3.2 |
|
57 * |
|
58 * @return Transaction id to follow. |
|
59 */ |
|
60 TUint32 TransactionId (); |
|
61 |
|
62 private: |
|
63 |
|
64 /* |
|
65 * |
|
66 * Generate random transaction identifier for the DHCPInform-message. |
|
67 * |
|
68 * @since S60 3.2 |
|
69 * |
|
70 * @return Transaction id to follow. |
|
71 */ |
|
72 void RandomiseXid (); |
|
73 |
|
74 private: |
|
75 /** |
|
76 * Transaction identifier for Dhcp inform message. |
|
77 */ |
|
78 TUint32 iXid; |
|
79 |
|
80 }; |
|
81 |
|
82 #endif // DHCPDATALOCATIONREQUEST_H |