|
1 /* |
|
2 * Copyright (c) 2005 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 |
|
21 #ifndef C_CSTUNCLIENTRESOLVINGTCP_H |
|
22 #define C_CSTUNCLIENTRESOLVINGTCP_H |
|
23 |
|
24 // INCLUDES |
|
25 #include "cstunclientstate.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * In this state, STUN client waits to receive the resolved TCP addresses of |
|
33 * the STUN server. |
|
34 */ |
|
35 class CSTUNClientResolvingTCP : public CSTUNClientState |
|
36 { |
|
37 public: // Constructors and destructor |
|
38 |
|
39 CSTUNClientResolvingTCP( const CSTUNClientState& aResolvingTLS, |
|
40 const CSTUNClientState& aResolvingUDP ); |
|
41 |
|
42 CSTUNClientResolvingTCP( const CSTUNClientState& aResolvingUDP ); |
|
43 |
|
44 ~CSTUNClientResolvingTCP(); |
|
45 |
|
46 public: // From CSTUNClientState |
|
47 |
|
48 void ResolvingCompletedL( CSTUNClientImplementation& aContext, |
|
49 TBool aObtainSharedSecret ) const; |
|
50 |
|
51 void ResolvingFailed( CSTUNClientImplementation& aContext, |
|
52 TInt aError ) const; |
|
53 |
|
54 private: |
|
55 |
|
56 CSTUNClientResolvingTCP(); |
|
57 |
|
58 |
|
59 private: // Data |
|
60 |
|
61 //Next possible states |
|
62 const CSTUNClientState& iResolvingTLS; |
|
63 const CSTUNClientState& iResolvingUDP; |
|
64 }; |
|
65 |
|
66 #endif // C_CSTUNCLIENTRESOLVINGTCP_H |