author | Nithin Vijay <nithin.vjay@nokia.com> |
Tue, 20 Apr 2010 17:00:49 +0100 | |
branch | RCL_3 |
changeset 18 | 50bae5c5c85f |
permissions | -rw-r--r-- |
18
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
1 |
// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
2 |
// All rights reserved. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
3 |
// This component and the accompanying materials are made available |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
4 |
// under the terms of "Eclipse Public License v1.0" |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
5 |
// which accompanies this distribution, and is available |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
7 |
// |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
8 |
// Initial Contributors: |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
9 |
// Nokia Corporation - initial contribution. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
10 |
// |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
11 |
// Contributors: |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
12 |
// |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
13 |
// Description: |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
14 |
// |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
15 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
16 |
#include "WapBoundCLWSP.h" |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
17 |
#include "WapMsgUtils.h" |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
18 |
#include "CLWSPPduHandler.h" |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
19 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
20 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
21 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
22 |
CSWSWapBoundCLWSPService* CSWSWapBoundCLWSPService::NewL() |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
23 |
/** |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
24 |
Static new function |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
25 |
@internalComponent |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
26 |
@released |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
27 |
@since v8.0 |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
28 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
29 |
{ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
30 |
CSWSWapBoundCLWSPService* me = new(ELeave)CSWSWapBoundCLWSPService(); |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
31 |
CleanupStack::PushL(me); |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
32 |
me->ConstructL(); |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
33 |
CleanupStack::Pop(me); |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
34 |
return me; |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
35 |
} |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
36 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
37 |
CSWSWapBoundCLWSPService::CSWSWapBoundCLWSPService() |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
38 |
: CWapBoundCLWSPService() |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
39 |
/** |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
40 |
Constructor |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
41 |
@internalComponent |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
42 |
@released |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
43 |
@since v8.0 |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
44 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
45 |
{ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
46 |
} |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
47 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
48 |
CSWSWapBoundCLWSPService::~CSWSWapBoundCLWSPService() |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
49 |
/** |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
50 |
Destructor |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
51 |
@internalComponent |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
52 |
@released |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
53 |
@since v8.0 |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
54 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
55 |
{ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
56 |
delete iAgent; |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
57 |
} |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
58 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
59 |
void CSWSWapBoundCLWSPService::ConstructL() |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
60 |
/** |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
61 |
Second phase constructor |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
62 |
@internalComponent |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
63 |
@released |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
64 |
@since v8.0 |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
65 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
66 |
{ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
67 |
// Parent class construction |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
68 |
CWapBoundCLWSPService::ConstructL(); |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
69 |
iAgent=CWspMessageApiAgent::NewL(); |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
70 |
} |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
71 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
72 |
TInt CSWSWapBoundCLWSPService::Connect(Wap::TBearer aBearer, Wap::TPort aPort, TBool aSecure) |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
73 |
/** |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
74 |
Opens a End-point which is to be used to listen for the incoming method result messages from any sender; |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
75 |
@internalComponent |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
76 |
@released |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
77 |
@since v8.0 |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
78 |
@param aBearer (in) the bearer to listen on (use EAll for all bearers) |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
79 |
@param aPort (in) the port to listen on. If set to 0, a local port will be chosen for the client's first SendTo |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
80 |
@param aSecure (in) security flag indicates whether WTLS will be used or not |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
81 |
@returns KErrNone on successful completion, or one of the system error codes on failure. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
82 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
83 |
{ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
84 |
if(aSecure) |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
85 |
{ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
86 |
return KErrNotSupported; |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
87 |
} |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
88 |
return iAgent->Connect(aBearer, aPort, aSecure); |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
89 |
} |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
90 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
91 |
TInt CSWSWapBoundCLWSPService::MethodInvoke(Wap::TBearer aBearer, const TDesC8& aRemoteHost, Wap::TPort aRemotePort, TUint aMethod, const TDesC& aURI, const TDesC8& aReqHeaders, const TDesC8& aReqBody, const TUint8 aTransactionId) |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
92 |
/** |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
93 |
A synchronous call to send a method invoke method to the remote host. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
94 |
@internalComponent |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
95 |
@released |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
96 |
@since v8.0 |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
97 |
@param aBearer (in) the bearer that will be used |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
98 |
@param aRemoteHost (in) the remotehost to be sent message to |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
99 |
@param aRemotePort (in) the remoteport to be sent message to |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
100 |
@param aMethod (in) the method that will be invoked on server |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
101 |
@param aURI (in) the uri to build wsp message |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
102 |
@param aReqHeaders (in) the wsp header to be used to build method invoke message |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
103 |
@param aReqBody (in) the wsp body to be used to build method invoke message |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
104 |
@param aTransactionId (in) the transaction Id of the method invoke message |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
105 |
@returns KErrNone on successful completion, or one of the system error codes on failure. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
106 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
107 |
{ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
108 |
return iAgent->SendWspMessage(aBearer, aRemoteHost, aRemotePort, TWSPPduType(aMethod), aURI, aReqHeaders, aReqBody, aTransactionId); |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
109 |
} |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
110 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
111 |
TInt CSWSWapBoundCLWSPService::MethodResult(TDes8& aReqHeaders, TDes8& aReqBody, TPckgBuf<TUint8>& aTransactionIdPckg, TWSPStatus& aWspStatus, TRequestStatus& aReqStatus, TUint32 aTimeout) |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
112 |
/** |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
113 |
Request an asynchronous notification upon arrival of the method result messages on the listening connection. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
114 |
The request completes upon receipt of the message, filling the buffers with as much received data as possible. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
115 |
A return code will indicate whether further data remains. The call must be re-issued for subsequent messages |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
116 |
or to receive remaining data from a previous method result message. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
117 |
@internalComponent |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
118 |
@released |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
119 |
@since v8.0 |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
120 |
@param aReqHeaders (out) (client-allocated) - when a method result message arrives the header data is written here |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
121 |
@param aReqBody (out) (client-allocated) - when a method result message arrives the body data is written here |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
122 |
@param aTransactionIdPckg (out) when a method result message arrives an integer ID that uniquely specifies the message is written here |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
123 |
@param aWspStatus (out) when a method result message arrives, the wsp status is written here. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
124 |
@param aReqStatus (inout) used by the service provider to notify the client when a method result has arrived |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
125 |
@param aTimeout (in) an optional millisecond time-out which allows a timed read to be made. If no data is received |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
126 |
within the timeout period the request completes with KErrTimedOut. If a value of 0 is supplied the timeout is infinite. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
127 |
@returns KErrNone on successful completion, or one of the system error codes on failure. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
128 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
129 |
{ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
130 |
return iAgent->ReceiveWspMessage(aReqHeaders, aReqBody, aTransactionIdPckg, aWspStatus, aReqStatus, aTimeout); |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
131 |
} |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
132 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
133 |
void CSWSWapBoundCLWSPService::CancelReq() |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
134 |
/** |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
135 |
Cancel a previously-requested method result notification. If a method result message arrives the client will not be notified. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
136 |
@internalComponent |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
137 |
@released |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
138 |
@since v8.0 |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
139 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
140 |
{ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
141 |
iAgent->CancelRequest(); |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
142 |
} |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
143 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
144 |
TInt CSWSWapBoundCLWSPService::GetLocalPort(Wap::TPort& aPort) |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
145 |
/** |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
146 |
Get the local address of this endpoint. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
147 |
@internalComponent |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
148 |
@released |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
149 |
@since v8.0 |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
150 |
@param aPort (out) the port of the local host |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
151 |
@returns KErrNone on successful completion, or one of the system error codes on failure. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
152 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
153 |
{ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
154 |
return iAgent->GetLocalPort(aPort); |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
155 |
} |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
156 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
157 |
TInt CSWSWapBoundCLWSPService::GetLocalAddress(HBufC8*& aLocalHost) |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
158 |
/** |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
159 |
Get the local address of this endpoint. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
160 |
@internalComponent |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
161 |
@released |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
162 |
@since v8.0 |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
163 |
@param aLocalHost (inout) the address of the local host. A reference to a HBufC8 pointer should |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
164 |
be passed in. This pointer MUST be null! A HBufC8 will be allocated to hold the address, ownership |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
165 |
of this buffer will be passed over to the client. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
166 |
@returns KErrNone on successful completion, or one of the system error codes on failure. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
167 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
168 |
{ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
169 |
return iAgent->GetLocalAddress(aLocalHost); |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
170 |
} |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
171 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
172 |
TInt CSWSWapBoundCLWSPService::GetBearer(Wap::TBearer& aBearer) |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
173 |
/** |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
174 |
Get the bearer on which the method result message arrived. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
175 |
Useful when EAll was specified in Connect() |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
176 |
@internalComponent |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
177 |
@released |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
178 |
@since v8.0 |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
179 |
@param aBearer (out) the bearer |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
180 |
@returns KErrNone on successful completion, or one of the system error codes on failure. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
181 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
182 |
{ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
183 |
return iAgent->GetBearer(aBearer); |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
184 |
} |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
185 |
|
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
186 |
TInt CSWSWapBoundCLWSPService::GetServerAddress(HBufC8*& aServerAddress) |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
187 |
/** |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
188 |
Get the remote address of the last wsp method result message |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
189 |
@internalComponent |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
190 |
@released |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
191 |
@since v8.0 |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
192 |
Cannot be called when there is an outstanding MethodResult(). |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
193 |
@param aServerAddress the address of the remote server. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
194 |
A reference to a HBufC8 pointer should be passed in. An HBufC8 will be allocated |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
195 |
to hold the address ,ownership of this buffer will be passed over to the client. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
196 |
@returns KErrNone on successful completion, KErrNotSupported if not implemented or one of the system error codes on failure. |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
197 |
*/ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
198 |
{ |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
199 |
return iAgent->GetServerAddress(aServerAddress); |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
200 |
} |
50bae5c5c85f
Add wapstack/wapmessageapi component, to fix Bug 1398
Nithin Vijay <nithin.vjay@nokia.com>
parents:
diff
changeset
|
201 |