#include <wapmessage.h>
Link against: wapmsgcli.lib
| class CWapBoundCLWSPService : public CBase |
| Public Member Functions | |
|---|---|
| virtual | ~CWapBoundCLWSPService() |
| pure virtual void | CancelReq() |
| pure virtual TInt | Connect(Wap::TBearer, Wap::TPort, TBool) |
| pure virtual TInt | GetBearer(Wap::TBearer &) |
| pure virtual TInt | GetLocalAddress(HBufC8 *&) |
| pure virtual TInt | GetLocalPort(Wap::TPort &) |
| pure virtual TInt | GetServerAddress(HBufC8 *&) |
| pure virtual TInt | MethodInvoke(Wap::TBearer, const TDesC8 &, Wap::TPort, TUint, const TDesC &, const TDesC8 &, const TDesC8 &, const TUint8) |
| pure virtual TInt | MethodResult(TDes8 &, TDes8 &, TPckgBuf< TUint8 > &, TWSPStatus &, TRequestStatus &, TUint32) |
| IMPORT_C CWapBoundCLWSPService * | NewL() |
| IMPORT_C CWapBoundCLWSPService * | NewL(const TUid &) |
| Protected Member Functions | |
|---|---|
| CWapBoundCLWSPService() | |
| IMPORT_C void | ConstructL() |
Bound Connectionless WSP since v8.0
| IMPORT_C | CWapBoundCLWSPService | ( | ) | [protected] |
| void | CancelReq | ( | ) | [pure virtual] |
Cancels a previously requested asynchronous MethodResult() notification.
If a datagram arrives at the local host, it will be discarded.
Connects to the WAP stack, opening an endpoint that can be used for S-Unit-MethodInvoke and S-Unit-MethodResult primitives.
| Parameters | |
|---|---|
| aBearer | The bearer to listen on (use EAll for all bearers) |
| aPort | The port to listen on. If set to 0, a local port will be chosen for the client's first MethodInvoke() |
| IMPORT_C void | ConstructL | ( | ) | [protected] |
| TInt | GetBearer | ( | Wap::TBearer & | ) | [pure virtual] |
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 |
Gets the remote server address.
| Parameters | |
|---|---|
| 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. |
| 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 | |
|---|---|
| aBearer | The bearer to be used, if the bound connection was opened with EAll |
| aRemoteHost | The address of the remote host to which to send the request. The format of the address is bearer-specific. |
| aRemotePort | The port on the remote host to which the request will be sent |
| 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 CWapBoundCLWSPService * | NewL | ( | ) | [static] |
Bound WSP New interface and implementation Allocates and creates a new CWapBoundCLWSPService object.
| Leave Codes | |
|---|---|
| System | wide error codes. |
| IMPORT_C CWapBoundCLWSPService * | NewL | ( | const TUid & | aImplementation | ) | [static] |
Allocates and creates a new CWapBoundCLWSPService object.
| Leave Codes | |
|---|---|
| System | wide error codes. |