CWapBoundCLWSPService Class Reference

class CWapBoundCLWSPService : public CBase

Bound Connectionless WSP since v8.0

Inherits from

  • CWapBoundCLWSPService

Constructor & Destructor Documentation

CWapBoundCLWSPService()

IMPORT_CCWapBoundCLWSPService()[protected]

~CWapBoundCLWSPService()

IMPORT_C~CWapBoundCLWSPService()[virtual]

Destructor

Member Functions 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

Wap::TBearer aBearerThe bearer to listen on (use EAll for all bearers)
Wap::TPort aPortThe 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 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()

Parameters

Wap::TBearer &

GetLocalAddress(HBufC8 *&)

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

Gets the local address of this endpoint.

Parameters

HBufC8 *& 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.

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 & aPortOn return, the port number

GetServerAddress(HBufC8 *&)

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

Gets the remote server address.

Parameters

HBufC8 *& 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.

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

Wap::TBearer aBearerThe bearer to be used, if the bound connection was opened with EAll
const TDesC8 & aRemoteHostThe address of the remote host to which to send the request. The format of the address is bearer-specific.
Wap::TPort aRemotePortThe 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)

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

Waits for a datagram to be received.

Parameters

TDes8 & aReqHeaders
TDes8 & aReqBody
TPckgBuf< TUint8 > & aTransactionIdPckg
TWSPStatus & aWspStatus
TRequestStatus & aReqStatusAsynchonrous status word, used to signal when a data size is known
TUint32 aTimeout

NewL()

IMPORT_C CWapBoundCLWSPService *NewL()[static]

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

leave
System wide error codes.

NewL(const TUid &)

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

Allocates and creates a new CWapBoundCLWSPService object.

leave
System wide error codes.

Parameters

const TUid & aImplementation

Member Data Documentation

TUid iDtor_ID_Key

TUid iDtor_ID_Key[private]