|
1 /* |
|
2 * Copyright (c) 2002 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 the License "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 * Implementation of class CHttpTcpSession. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 // INCLUDE FILES |
|
22 |
|
23 #include <HttpFilterCommonStringsExt.h> |
|
24 #include "HttpTcpSession.h" |
|
25 #include "CodLogger.h" |
|
26 #include "CodPanic.h" |
|
27 |
|
28 // ================= MEMBER FUNCTIONS ======================= |
|
29 |
|
30 // --------------------------------------------------------- |
|
31 // CHttpTcpSession::NewL() |
|
32 // --------------------------------------------------------- |
|
33 // |
|
34 CHttpTcpSession* CHttpTcpSession::NewL() |
|
35 { |
|
36 CHttpTcpSession* sess = new( ELeave ) CHttpTcpSession(); |
|
37 CleanupStack::PushL( sess ); |
|
38 sess->ConstructL(); |
|
39 CleanupStack::Pop( sess ); |
|
40 return sess; |
|
41 } |
|
42 |
|
43 // --------------------------------------------------------- |
|
44 // CHttpTcpSession::~CHttpTcpSession() |
|
45 // --------------------------------------------------------- |
|
46 // |
|
47 CHttpTcpSession::~CHttpTcpSession() |
|
48 { |
|
49 CLOG(( ETcpConn, 2, _L("CHttpTcpSession::~CHttpTcpSession") )); |
|
50 iSess.Close(); |
|
51 } |
|
52 |
|
53 // --------------------------------------------------------- |
|
54 // CHttpTcpSession::ConnectL() |
|
55 // --------------------------------------------------------- |
|
56 // |
|
57 void CHttpTcpSession::ConnectL( TRequestStatus* aStatus ) |
|
58 { |
|
59 CLOG(( ETcpConn, 2, _L("CHttpTcpSession::ConnectL") )); |
|
60 *aStatus = KRequestPending; |
|
61 User::RequestComplete( aStatus, KErrNone ); |
|
62 } |
|
63 |
|
64 // --------------------------------------------------------- |
|
65 // CHttpTcpSession::Disconnect() |
|
66 // --------------------------------------------------------- |
|
67 // |
|
68 void CHttpTcpSession::Disconnect() |
|
69 { |
|
70 CLOG(( ETcpConn, 2, _L("CHttpTcpSession::Disconnect") )); |
|
71 } |
|
72 |
|
73 // --------------------------------------------------------- |
|
74 // CHttpTcpSession::CHttpTcpSession() |
|
75 // --------------------------------------------------------- |
|
76 // |
|
77 CHttpTcpSession::CHttpTcpSession(): CHttpSessionBase() |
|
78 { |
|
79 CLOG(( ETcpConn, 2, _L("CHttpTcpSession::CHttpTcpSession") )); |
|
80 } |
|
81 |
|
82 // --------------------------------------------------------- |
|
83 // CHttpTcpSession::ConstructL() |
|
84 // --------------------------------------------------------- |
|
85 // |
|
86 void CHttpTcpSession::ConstructL() |
|
87 { |
|
88 iSess.OpenL(); |
|
89 iSess.StringPool().OpenL( HttpFilterCommonStringsExt::GetTable() ); |
|
90 } |
|
91 |