equal
deleted
inserted
replaced
23 #define SYMBIAN_NETWORKING_UPS |
23 #define SYMBIAN_NETWORKING_UPS |
24 |
24 |
25 #include "IPCpr.h" |
25 #include "IPCpr.h" |
26 #include "ipcpr_states.h" |
26 #include "ipcpr_states.h" |
27 #include "IPMessages.h" |
27 #include "IPMessages.h" |
|
28 #include <gsmerror.h> |
28 #include <comms-infras/ss_nodemessages.h> |
29 #include <comms-infras/ss_nodemessages.h> |
29 #include <comms-infras/ss_nodemessages_internal_esock.h> |
30 #include <comms-infras/ss_nodemessages_internal_esock.h> |
30 #include <comms-infras/ss_datamonitoringprovider.h> |
31 #include <comms-infras/ss_datamonitoringprovider.h> |
31 |
32 |
32 #ifdef SYMBIAN_ADAPTIVE_TCP_RECEIVE_WINDOW |
33 #ifdef SYMBIAN_ADAPTIVE_TCP_RECEIVE_WINDOW |
186 TInt err = platsec->CheckPolicy(KIpCprStartSecurityPolicy); |
187 TInt err = platsec->CheckPolicy(KIpCprStartSecurityPolicy); |
187 User::LeaveIfError(err); |
188 User::LeaveIfError(err); |
188 } |
189 } |
189 |
190 |
190 #endif //SYMBIAN_NETWORKING_UPS |
191 #endif //SYMBIAN_NETWORKING_UPS |
|
192 |
|
193 |
|
194 DEFINE_SMELEMENT( TAwaitingSpecialGoneDown, NetStateMachine::MState, IpCprStates::TContext) |
|
195 TBool IpCprStates::TAwaitingSpecialGoneDown::Accept() |
|
196 { |
|
197 TCFControlClient::TGoneDown* pGoneDown = message_cast<TCFControlClient::TGoneDown>(&iContext.iMessage); |
|
198 if(pGoneDown && //If this is a TCFControlClient::TGoneDown message AND |
|
199 iContext.Node().CountClients<TDefaultClientMatchPolicy>( |
|
200 TClientType(TCFClientType::ECtrl, TCFClientType::EAttach)) && //the local node is an attached ipcpr AND |
|
201 ((pGoneDown->iValue1 == KErrGprsInsufficientResources) || //the error value suggests the contention management |
|
202 (pGoneDown->iValue1 == KErrPacketDataTsyMaxPdpContextsReached) || |
|
203 (pGoneDown->iValue1 == KErrUmtsMaxNumOfContextExceededByNetwork) || |
|
204 (pGoneDown->iValue1 == KErrUmtsMaxNumOfContextExceededByPhone)) |
|
205 ) |
|
206 { |
|
207 return ETrue; |
|
208 } |
|
209 return EFalse; |
|
210 } |
|
211 |
191 |
212 |
192 #ifdef SYMBIAN_ADAPTIVE_TCP_RECEIVE_WINDOW |
213 #ifdef SYMBIAN_ADAPTIVE_TCP_RECEIVE_WINDOW |
193 /* |
214 /* |
194 Constructor for the new parameter set to be sent in parameter bundle while requesting for bearer type. |
215 Constructor for the new parameter set to be sent in parameter bundle while requesting for bearer type. |
195 @param aFamily - Specified the family the parameterset belongs to |
216 @param aFamily - Specified the family the parameterset belongs to |