|
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 #include <e32std.h> |
|
22 #include <ecom/ecom.h> |
|
23 #include <ecom/implementationproxy.h> |
|
24 #include "eintsock_transport.h" |
|
25 #include "ss_eintsock_msgs.h" |
|
26 #include "ss_eintsockimpl.h" |
|
27 |
|
28 using namespace Den; |
|
29 using namespace Elements; |
|
30 using namespace CommsFW; |
|
31 |
|
32 // Define the interface UIDs |
|
33 |
|
34 const TImplementationProxy ImplementationTable[] = |
|
35 { |
|
36 IMPLEMENTATION_PROXY_ENTRY(KEIntSockTransportPluginImplementationUid, CEIntSockTransport::NewL), |
|
37 }; |
|
38 |
|
39 /** |
|
40 ECOM Implementation Factories |
|
41 */ |
|
42 |
|
43 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount) |
|
44 { |
|
45 aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy); |
|
46 |
|
47 return ImplementationTable; |
|
48 } |
|
49 |
|
50 /** |
|
51 Plugin Implementation |
|
52 */ |
|
53 |
|
54 CEIntSockTransport* CEIntSockTransport::NewL(TTransportReceiverFactoryArgs* /*aArgs*/) |
|
55 { |
|
56 CEIntSockTransport* self = new(ELeave) CEIntSockTransport; |
|
57 return self; |
|
58 } |
|
59 |
|
60 void CEIntSockTransport::ProcessMessage(const TWorkerTransportMsg& aMsg, TRequestWrapper& aRequest, TTransportUserStorage& aStorage, TWorkerId aWorkerId) |
|
61 { |
|
62 CInternalSockSubSession::ProcessMessage(aMsg, aRequest, aStorage, aWorkerId); |
|
63 } |
|
64 |
|
65 void CEIntSockTransport::OnPeerDeath(TWorkerId aPeer, TTransportUserStorage& aStorage) |
|
66 { |
|
67 CInternalSockSubSession::OnPeerDeath(aPeer, aStorage); |
|
68 } |
|
69 |
|
70 void CEIntSockTransport::Shutdown(TBool aAlreadyDead, TTransportUserStorage& aStorage) |
|
71 { |
|
72 CInternalSockSubSession::Shutdown(aAlreadyDead, aStorage); |
|
73 } |
|
74 |