CWapBoundCLWSPService Class Reference
class CWapBoundCLWSPService : public CBase
|
Bound Connectionless WSP since v8.0
Public Member Functions
|
|
~CWapBoundCLWSPService
()
|
void
|
CancelReq
()
|
TInt
|
Connect
(
Wap::TBearer
,
Wap::TPort
,
TBool
)
|
TInt
|
GetBearer
(
Wap::TBearer
&)
|
TInt
|
GetLocalAddress
(
HBufC8
*&)
|
TInt
|
GetLocalPort
(
Wap::TPort
&)
|
TInt
|
GetServerAddress
(
HBufC8
*&)
|
TInt
|
MethodInvoke
(
Wap::TBearer
, const
TDesC8
&,
Wap::TPort
,
TUint
, const
TDesC
&, const
TDesC8
&, const
TDesC8
&, const
TUint8
)
|
TInt
|
MethodResult
(
TDes8
&,
TDes8
&,
TPckgBuf
<
TUint8
> &,
TWSPStatus
&,
TRequestStatus
&,
TUint32
)
|
IMPORT_C
CWapBoundCLWSPService
*
|
NewL
()
|
IMPORT_C
CWapBoundCLWSPService
*
|
NewL
(const
TUid
&)
|
Constructor & Destructor Documentation
CWapBoundCLWSPService()
IMPORT_C
|
CWapBoundCLWSPService
|
(
|
)
|
[protected]
|
~CWapBoundCLWSPService()
IMPORT_C
|
~CWapBoundCLWSPService
|
(
|
)
|
[virtual]
|
Member Functions Documentation
CancelReq()
void
|
CancelReq
|
(
|
)
|
[pure virtual]
|
Cancels a previously requested asynchronous
MethodResult()
notification.
If a datagram arrives at the local host, it will be discarded.
Connect(Wap::TBearer, Wap::TPort, TBool)
TInt
|
Connect
|
(
|
Wap::TBearer
|
aBearer,
|
|
Wap::TPort
|
aPort,
|
|
TBool
|
aSecure
|
|
)
|
[pure virtual]
|
Connects to the WAP stack, opening an endpoint that can be used for S-Unit-MethodInvoke and S-Unit-MethodResult primitives.
Parameters
Wap::TBearer
aBearer
|
The bearer to listen on (use EAll for all bearers)
|
Wap::TPort
aPort
|
The port to listen on. If set to 0, a local port will be chosen for the client's first MethodInvoke()
|
TBool
aSecure
|
|
ConstructL()
IMPORT_C void
|
ConstructL
|
(
|
)
|
[protected]
|
GetBearer(Wap::TBearer &)
TInt
|
GetBearer
|
(
|
Wap::TBearer
&
|
|
)
|
[pure virtual]
|
Gets the bearer on which a received datagram arrived.
Useful when EAll was specified in
Connect()
GetLocalAddress(HBufC8 *&)
TInt
|
GetLocalAddress
|
(
|
HBufC8
*&
|
aLocalHost
|
)
|
[pure virtual]
|
Gets the local address of this endpoint.
Parameters
HBufC8
*& aLocalHost
|
On return, the address of the local host. Clients must pass in a reference to a NULL HBufC8 pointer. The function allocates a new HBufC8 buffer to hold the address, and passes ownership of the buffer to the client.
|
GetLocalPort(Wap::TPort &)
TInt
|
GetLocalPort
|
(
|
Wap::TPort
&
|
aPort
|
)
|
[pure virtual]
|
Gets the local port of this endpoint.
This is useful if the port was chosen automatically.
Parameters
Wap::TPort
& aPort
|
On return, the port number
|
GetServerAddress(HBufC8 *&)
TInt
|
GetServerAddress
|
(
|
HBufC8
*&
|
aServerAddress
|
)
|
[pure virtual]
|
Gets the remote server address.
Parameters
HBufC8
*& aServerAddress
|
On return, the address of the remote server. Clients must pass in a reference to a NULL HBufC8 pointer. The function allocates a new HBufC8 buffer to hold the address, and passes ownership of the buffer to the client.
|
MethodInvoke(Wap::TBearer, const TDesC8 &, Wap::TPort, TUint, const TDesC &, const TDesC8 &, const TDesC8 &, const TUint8)
TInt
|
MethodInvoke
|
(
|
Wap::TBearer
|
aBearer,
|
|
const
TDesC8
&
|
aRemoteHost,
|
|
Wap::TPort
|
aRemotePort,
|
|
TUint
|
aMethod,
|
|
const
TDesC
&
|
aURI,
|
|
const
TDesC8
&
|
aReqHeaders,
|
|
const
TDesC8
&
|
aReqBody,
|
|
const
TUint8
|
aTransactionId
|
|
)
|
[pure virtual]
|
Sends a request to a remote endpoint.
Parameters
Wap::TBearer
aBearer
|
The bearer to be used, if the bound connection was opened with EAll
|
const
TDesC8
& aRemoteHost
|
The address of the remote host to which to send the request. The format of the address is bearer-specific.
|
Wap::TPort
aRemotePort
|
The port on the remote host to which the request will be sent
|
TUint
aMethod
|
|
const
TDesC
& aURI
|
|
const
TDesC8
& aReqHeaders
|
|
const
TDesC8
& aReqBody
|
|
const
TUint8
aTransactionId
|
|
MethodResult(TDes8 &, TDes8 &, TPckgBuf< TUint8 > &, TWSPStatus &, TRequestStatus &, TUint32)
Waits for a datagram to be received.
NewL()
Bound WSP New interface and implementation Allocates and creates a new
CWapBoundCLWSPService
object.
-
leave
-
System wide error codes.
NewL(const TUid &)
Parameters
const
TUid
& aImplementation
|
|
Member Data Documentation
TUid
iDtor_ID_Key
TUid
|
iDtor_ID_Key
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.