65 suplService = RSuplTerminalSubSession::ESUPL_2_0; |
65 suplService = RSuplTerminalSubSession::ESUPL_2_0; |
66 else |
66 else |
67 suplService = RSuplTerminalSubSession::ESUPL_1_0; |
67 suplService = RSuplTerminalSubSession::ESUPL_1_0; |
68 |
68 |
69 iSuplSession = aSessnMgr.CreateNewSessionL(aReqType, 0, suplService ); |
69 iSuplSession = aSessnMgr.CreateNewSessionL(aReqType, 0, suplService ); |
70 |
|
71 if (iSuplSession) |
70 if (iSuplSession) |
72 { |
71 { |
73 iSuplSession->SetSUPLVersion(majorVersion); |
72 iSuplSession->SetSUPLVersion(majorVersion); |
74 iSuplSessnReq = CSuplSessionRequest::NewL(aSessnMgr, iSuplSession, aServer); |
73 iSuplSessnReq = CSuplSessionRequest::NewL(aSessnMgr, iSuplSession, aServer); |
75 } |
74 } |
76 |
75 else |
|
76 if (!iSuplSession && suplService == RSuplTerminalSubSession::ESUPL_2_0) |
|
77 { |
|
78 suplService = RSuplTerminalSubSession::ESUPL_1_0; |
|
79 iSuplSession = aSessnMgr.CreateNewSessionL(aReqType, 0, suplService ); |
|
80 if (iSuplSession) |
|
81 { |
|
82 iSuplSession->SetSUPLVersion(majorVersion); |
|
83 iSuplSessnReq = CSuplSessionRequest::NewL(aSessnMgr, iSuplSession, aServer); |
|
84 } |
|
85 } |
77 |
86 |
78 } |
87 } |
79 |
88 |
80 // Two-phased constructor. |
89 // Two-phased constructor. |
81 CSuplNetInitiatedSession* CSuplNetInitiatedSession::NewLC(CSuplSessionManager& aSessnMgr, CSUPLProtocolManagerBase::TSuplReqType aReqType,CSuplServer* aServer,HBufC8* aClientBuf) |
90 CSuplNetInitiatedSession* CSuplNetInitiatedSession::NewLC(CSuplSessionManager& aSessnMgr, CSUPLProtocolManagerBase::TSuplReqType aReqType,CSuplServer* aServer,HBufC8* aClientBuf) |