|
1 /* |
|
2 * Copyright (c) 2006-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: General definitions for NAT connectivity framework |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef NATCONNECTIVITYFW_HRH |
|
22 #define NATCONNECTIVITYFW_HRH |
|
23 |
|
24 /** Defines in which direction TCP connection will be established. */ |
|
25 enum TNATFWTcpConnectionSetup |
|
26 { |
|
27 /** Uninitialized or some other error. */ |
|
28 ETcpSetupUnknown = 0, |
|
29 |
|
30 /** The local endpoint will initiate an outgoing connection. */ |
|
31 ETcpSetupActive = 1, |
|
32 |
|
33 /** The local endpoint will accept an incoming connection. */ |
|
34 ETcpSetupPassive = 2 |
|
35 }; |
|
36 |
|
37 /** Defines streaming state for the NATFW stream. */ |
|
38 enum TNATFWStreamingState |
|
39 { |
|
40 /** Uninitialized or some other error. */ |
|
41 EStreamingStateUnknown = 0, |
|
42 |
|
43 /** Streaming enabled. */ |
|
44 EStreamingStateActive = 1, |
|
45 |
|
46 /** Streaming disabled. */ |
|
47 EStreamingStatePassive = 2 |
|
48 }; |
|
49 |
|
50 /** Defines possible roles for ICE. */ |
|
51 enum TNATFWIceRole |
|
52 { |
|
53 /** Uninitialized or some other error. */ |
|
54 EIceRoleUnknown = 0, |
|
55 |
|
56 /** Local endpoint will act as a controlling agent. */ |
|
57 EIceRoleControlling = 1, |
|
58 |
|
59 /** Local endpoint will act as a controlled agent. */ |
|
60 EIceRoleControlled = 2 |
|
61 }; |
|
62 |
|
63 #endif // NATCONNECTIVITYFW_HRH |