#include <wapmessage.h>
Link against: wapmsgcli.lib
| class CWapFullySpecCLWSPService : public CBase |
| Public Member Functions | |
|---|---|
| virtual | ~CWapFullySpecCLWSPService() |
| pure virtual void | CancelReq() |
| pure virtual TInt | Connect(const TDesC8 &, Wap::TPort, Wap::TBearer, TBool) |
| pure virtual TInt | GetLocalAddress(HBufC8 *&) |
| pure virtual TInt | GetLocalPort(Wap::TPort &) |
| pure virtual TInt | MethodInvoke(TUint, const TDesC &, const TDesC8 &, const TDesC8 &, TUint8) |
| pure virtual TInt | MethodResult(TDes8 &, TDes8 &, TPckgBuf< TUint8 > &, TWSPStatus &, TRequestStatus &, TUint32) |
| IMPORT_C CWapFullySpecCLWSPService * | NewL() |
| IMPORT_C CWapFullySpecCLWSPService * | NewL(const TUid &) |
| Protected Member Functions | |
|---|---|
| CWapFullySpecCLWSPService() | |
| IMPORT_C void | ConstructL() |
Fully-Specified Connectionless WSP since v8.0
| IMPORT_C | CWapFullySpecCLWSPService | ( | ) | [protected] |
| void | CancelReq | ( | ) | [pure virtual] |
Cancels a previously-requested MethodResult() notification.
If a message arrives the client will not be notified.
| TInt | Connect | ( | const TDesC8 & | aRemoteHost, |
| Wap::TPort | aRemotePort, | |||
| Wap::TBearer | aBearer, | |||
| TBool | aSecure | |||
| ) | [pure virtual] | |||
Connects to the WAP stack, opening an endpoint that can be used to listen for Push messages from a specified remote host.
All CWapFullySpecCLWSPService implementations must automatically close this endpoint upon destruction.
| Parameters | |
|---|---|
| aRemoteHost | The bearer-dependent address of the remote host with which the data will be exchanged |
| aRemotePort | The port on the remote host to which data will be sent |
| aBearer | The bearer to listen on. You cannot use EAll. |
| aSecure | Security flag to indicate whether WTLS should be used or not |
| IMPORT_C void | ConstructL | ( | ) | [protected] |
Gets the local address of this endpoint.
| Parameters | |
|---|---|
| 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. |
| TInt | GetLocalPort | ( | Wap::TPort & | aPort | ) | [pure virtual] |
Gets the local port of this endpoint.
This is useful if the port was chosen automatically.
| Parameters | |
|---|---|
| aPort | On return, the port number |
| TInt | MethodInvoke | ( | TUint | aMethod, |
| const TDesC & | aURI, | |||
| const TDesC8 & | aReqHeaders, | |||
| const TDesC8 & | aReqBody, | |||
| TUint8 | aTransactionId | |||
| ) | [pure virtual] | |||
Sends a request to a remote endpoint.
| TInt | MethodResult | ( | TDes8 & | aReqHeaders, |
| TDes8 & | aReqBody, | |||
| TPckgBuf< TUint8 > & | aTransactionIdPckg, | |||
| TWSPStatus & | aWspStatus, | |||
| TRequestStatus & | aReqStatus, | |||
| TUint32 | aTimeout | |||
| ) | [pure virtual] | |||
Waits for a datagram to be received
| Parameters | |
|---|---|
| aReqStatus | Asynchonrous status word, used to signal when a data size is known |
| IMPORT_C CWapFullySpecCLWSPService * | NewL | ( | ) | [static] |
Fully-specified Connection-less WSP New interface and implementation Allocates and creates a new CWapFullySpecCLWSPService object.
| Leave Codes | |
|---|---|
| System | wide error codes. |
| IMPORT_C CWapFullySpecCLWSPService * | NewL | ( | const TUid & | aImplementation | ) | [static] |
Allocates and creates a new CWapFullySpecCLWSPService object.
| Leave Codes | |
|---|---|
| System | wide error codes. |