equal
deleted
inserted
replaced
1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
28 #include <networking/packetlogger.h> |
28 #include <networking/packetlogger.h> |
29 #include <in_sock.h> |
29 #include <in_sock.h> |
30 #include <comms-infras/ss_flowbinders.h> |
30 #include <comms-infras/ss_flowbinders.h> |
31 #include <comms-infras/ss_subconnflow.h> |
31 #include <comms-infras/ss_subconnflow.h> |
32 #include "BinderBase.h" |
32 #include "BinderBase.h" |
|
33 #include "bttlog.h" |
33 #include <comms-infras/linkmessages.h> // for TLinkMessageId |
34 #include <comms-infras/linkmessages.h> // for TLinkMessageId |
34 |
35 |
35 class CBcaController; |
36 class CBcaController; |
|
37 class CBttLogger; |
36 class CPacketLogger; |
38 class CPacketLogger; |
37 class CBCAProvision; |
39 class CBCAProvision; |
38 |
40 |
39 class CRawIP2Flow : public ESock::CSubConnectionFlowBase, public ESock::MFlowBinderControl |
41 class CRawIP2Flow : public ESock::CSubConnectionFlowBase, public ESock::MFlowBinderControl |
40 { |
42 { |
96 |
98 |
97 public: // Context status retrieval. |
99 public: // Context status retrieval. |
98 inline RPacketContext::TContextStatus GetContextStatus(); |
100 inline RPacketContext::TContextStatus GetContextStatus(); |
99 |
101 |
100 protected: |
102 protected: |
101 CRawIP2Flow(ESock::CSubConnectionFlowFactoryBase& aFactory, const Messages::TNodeId& aSubConnId, ESock::CProtocolIntfBase* aProtocolIntf); |
103 CRawIP2Flow(ESock::CSubConnectionFlowFactoryBase& aFactory, const Messages::TNodeId& aSubConnId, ESock::CProtocolIntfBase* aProtocolIntf, CBttLogger* aTheLogger); |
102 void ConstructL(); |
104 void ConstructL(); |
103 virtual ~CRawIP2Flow(); |
105 virtual ~CRawIP2Flow(); |
104 |
106 |
105 protected: |
107 protected: |
106 class TBinderControlProxy : public ESock::MFlowBinderControl |
108 class TBinderControlProxy : public ESock::MFlowBinderControl |
134 void SendDataClientIdleIfNoClients(); |
136 void SendDataClientIdleIfNoClients(); |
135 |
137 |
136 private:// Unowned |
138 private:// Unowned |
137 /** networking packet logger for debugging packets */ |
139 /** networking packet logger for debugging packets */ |
138 __PACKETLOG_DECLARATION_MEMBER; |
140 __PACKETLOG_DECLARATION_MEMBER; |
139 // Upstack bound protocol reference |
141 CBttLogger* iTheLogger; |
140 |
142 |
141 // The protocol to use (IPv4).Note: This is not owned by this class. |
143 // The protocol to use (IPv4).Note: This is not owned by this class. |
142 CBinderBase* iBinder; |
144 CBinderBase* iBinder; |
143 |
145 |
144 const CBCAProvision* iBCAProvisionConfig; // pointer to BCA provisioning structure in CAccessPointConfig |
146 const CBCAProvision* iBCAProvisionConfig; // pointer to BCA provisioning structure in CAccessPointConfig |