CWapBoundCLWSPService Class Reference

#include <wapmessage.h>

Link against: wapmsgcli.lib

class CWapBoundCLWSPService : public CBase

Inherits from

  • CWapBoundCLWSPService
Public Member Functions
virtual ~CWapBoundCLWSPService()
pure virtual voidCancelReq()
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 voidConstructL()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()

Detailed Description

Bound Connectionless WSP since v8.0

Constructor & Destructor Documentation

CWapBoundCLWSPService ( )

IMPORT_CCWapBoundCLWSPService()[protected]

~CWapBoundCLWSPService ( )

IMPORT_C~CWapBoundCLWSPService()[virtual]

Destructor

Member Function Documentation

CancelReq ( )

voidCancelReq()[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::TBeareraBearer,
Wap::TPortaPort,
TBoolaSecure
)[pure virtual]

Connects to the WAP stack, opening an endpoint that can be used for S-Unit-MethodInvoke and S-Unit-MethodResult primitives.

Parameters
aBearerThe bearer to listen on (use EAll for all bearers)
aPortThe port to listen on. If set to 0, a local port will be chosen for the client's first MethodInvoke()
Return Value
KErrNone on successful completion, or one of the system error codes on failure.

ConstructL ( )

IMPORT_C voidConstructL()[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()

Return Value
KErrNone on successful completion, or one of the system error codes on failure.

GetLocalAddress ( HBufC8 *& )

TInt GetLocalAddress(HBufC8 *&aLocalHost)[pure virtual]

Gets the local address of this endpoint.

Parameters
aLocalHostOn 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.
Return Value
KErrNone on successful completion, or one of the system error codes on failure.

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
aPortOn return, the port number
Return Value
KErrNone on successful completion, or one of the system error codes on failure.

GetServerAddress ( HBufC8 *& )

TInt GetServerAddress(HBufC8 *&aServerAddress)[pure virtual]

Gets the remote server address.

Parameters
aServerAddressOn 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.
Return Value
KErrNone on successful completion, or one of the system error codes on failure.

MethodInvoke ( Wap::TBearer, const TDesC8 &, Wap::TPort, TUint, const TDesC &, const TDesC8 &, const TDesC8 &, const TUint8 )

TInt MethodInvoke(Wap::TBeareraBearer,
const TDesC8 &aRemoteHost,
Wap::TPortaRemotePort,
TUintaMethod,
const TDesC &aURI,
const TDesC8 &aReqHeaders,
const TDesC8 &aReqBody,
const TUint8aTransactionId
)[pure virtual]

Sends a request to a remote endpoint.

Parameters
aBearerThe bearer to be used, if the bound connection was opened with EAll
aRemoteHostThe address of the remote host to which to send the request. The format of the address is bearer-specific.
aRemotePortThe port on the remote host to which the request will be sent
Return Value
KErrNone on successful completion, or one of the system error codes on failure.

MethodResult ( TDes8 &, TDes8 &, TPckgBuf< TUint8 > &, TWSPStatus &, TRequestStatus &, TUint32 )

TInt MethodResult(TDes8 &aReqHeaders,
TDes8 &aReqBody,
TPckgBuf< TUint8 > &aTransactionIdPckg,
TWSPStatus &aWspStatus,
TRequestStatus &aReqStatus,
TUint32aTimeout
)[pure virtual]

Waits for a datagram to be received.

Parameters
aReqStatusAsynchonrous status word, used to signal when a data size is known
Return Value
KErrNone on successful completion, or one of the system error codes on failure.

NewL ( )

IMPORT_C CWapBoundCLWSPService *NewL()[static]

Bound WSP New interface and implementation Allocates and creates a new CWapBoundCLWSPService object.

Return Value
A new CWapBoundCLWSPService object.
Leave Codes
Systemwide error codes.

NewL ( const TUid & )

IMPORT_C CWapBoundCLWSPService *NewL(const TUid &aImplementation)[static]

Allocates and creates a new CWapBoundCLWSPService object.

Return Value
A new CWapBoundCLWSPService object.
Leave Codes
Systemwide error codes.