|
1 /* |
|
2 * Copyright (c) 2009 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 |
|
20 #ifndef __CDNSRESOURCEDATA_H__ |
|
21 #define __CDNSRESOURCEDATA_H__ |
|
22 |
|
23 |
|
24 #include <mdns/cdnssection.h> |
|
25 #include <mdns/tdnsheader.h> |
|
26 #include <mdns/dnsconstants.h> |
|
27 |
|
28 |
|
29 /* 1 1 1 1 1 |
|
30 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 |
|
31 +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ |
|
32 | | |
|
33 / / |
|
34 / NAME / |
|
35 | | |
|
36 +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ |
|
37 | TYPE | |
|
38 +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ |
|
39 |FL CLASS | |
|
40 +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ |
|
41 | TTL | |
|
42 | | |
|
43 +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ |
|
44 | RDLENGTH | |
|
45 +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--| |
|
46 / RDATA / |
|
47 / / |
|
48 +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ |
|
49 |
|
50 */ |
|
51 |
|
52 class CDnsResourceData: public CDnsSection |
|
53 { |
|
54 public: |
|
55 IMPORT_C virtual ~CDnsResourceData(); |
|
56 |
|
57 IMPORT_C CDnsResourceData* CloneL()const; |
|
58 |
|
59 IMPORT_C TBool IsFlushBitSet()const; |
|
60 IMPORT_C void SetFlushBit(TBool aFlushBit); |
|
61 |
|
62 IMPORT_C TUint16 RdLength()const; |
|
63 IMPORT_C void SetRdLength(TUint16 aRdLength); |
|
64 |
|
65 IMPORT_C TUint32 Ttl()const; |
|
66 IMPORT_C void SetTtl(TUint32 aTtl); |
|
67 |
|
68 virtual TUint16 Size()const; |
|
69 |
|
70 protected: |
|
71 CDnsResourceData(); |
|
72 |
|
73 |
|
74 protected: |
|
75 TUint16 iRdLength; |
|
76 TUint32 iTtl; |
|
77 }; |
|
78 |
|
79 #endif __CDNSRESOURCEDATA_H__ |