|
1 /* |
|
2 * Copyright (c) 2006 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: Class is used for configuring network access. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef MMCCNETWORKSETTINGS_H |
|
22 #define MMCCNETWORKSETTINGS_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32def.h> |
|
26 #include <in_sock.h> |
|
27 #include <e32cmn.h> |
|
28 |
|
29 // CONSTANTS |
|
30 const TInt KDefaultMediaQos = 184; |
|
31 const TInt KDefaultRtpPort = 17000; |
|
32 const TInt KDefaultRtcpPort = 17001; |
|
33 |
|
34 // MACROS |
|
35 |
|
36 // DATA TYPES |
|
37 |
|
38 // FUNCTION PROTOTYPES |
|
39 |
|
40 // FORWARD DECLARATIONS |
|
41 |
|
42 // CLASS DECLARATION |
|
43 |
|
44 /** |
|
45 * The TMccNetSettings captures the MCC network settings |
|
46 * into one class. MCC keeps local public addresses uptodate. |
|
47 * If NAT traversal is supported by the system, local and local |
|
48 * public addresses may be different. |
|
49 * |
|
50 * @lib mmccinterface.dll |
|
51 */ |
|
52 class TMccNetSettings |
|
53 { |
|
54 public: // Constructors and destructor |
|
55 |
|
56 inline TMccNetSettings() : |
|
57 iRemoteAddress( KInetAddrAny ), |
|
58 iRemoteRtcpPort( KDefaultRtcpPort ), |
|
59 iLocalAddress( KInetAddrAny ), |
|
60 iLocalPublicAddress( KInetAddrAny ), |
|
61 iLocalRtcpPort( KDefaultRtcpPort ), |
|
62 iLocalPublicRtcpPort( KDefaultRtcpPort ), |
|
63 iMediaQosValue( KDefaultMediaQos ), |
|
64 iIapId( -1 ), |
|
65 iReserved1( 0 ), |
|
66 iReserved2( 0 ) |
|
67 {}; |
|
68 |
|
69 public: // Data |
|
70 |
|
71 TInetAddr iRemoteAddress; |
|
72 TUint iRemoteRtcpPort; |
|
73 |
|
74 TInetAddr iLocalAddress; |
|
75 TInetAddr iLocalPublicAddress; |
|
76 TUint iLocalRtcpPort; |
|
77 TUint iLocalPublicRtcpPort; |
|
78 |
|
79 TInt iMediaQosValue; |
|
80 TInt iIapId; |
|
81 |
|
82 TUint32 iReserved1; |
|
83 TUint32 iReserved2; |
|
84 |
|
85 }; |
|
86 |
|
87 typedef TPckgBuf<TMccNetSettings> TMccNetSettingsPackage; |
|
88 |
|
89 #endif /* MMCCNETWORKSETTINGS_H */ |
|
90 |
|
91 // End of File |