Location:
wapcli.h
Link against: wapstkcli.lib
RWSPCOTrans
Supported from 6.0
WSP connection-orientated transaction. Objects of this type are
returned by RWSPCOConn::CreateTransaction()
, and are used to
manage an individual transaction.
For error codes, see RWSPCOConn::TReturnCodes
.
|
Defined in RWSPCOTrans
:
Abort()
, Acknowledge()
, EAbortReason
, EAborted
, EAckHeaders
, EDone
, EInit
, EInvokeBody
, EInvokeHeaders
, EInvokeMethod
, EInvokeUri
, EPushBody
, EPushHeaders
, EPushing
, EReplying
, ERequesting
, EResultBody
, EResultHeaders
, EResultStatus
, GetData()
, GetState()
, RWSPCOTrans()
, Release()
, TAbortReason
, TDataType
, TState
, ~RWSPCOTrans()
Inherited from RSubSessionBase
:
CloseSubSession()
,
CreateSubSession()
,
Send()
,
SendReceive()
,
SubSessionHandle()
,
operator=()
RWSPCOTrans(const RSubSessionBase& aSubSession);
Constructor with initialisation from existing sub-session.
|
TInt Abort(TAbortReason aReason);
Aborts a method invoke or push transaction. This can be used when the
state of transaction is EInit
or ERequesting
.
Always call Release()
after this function to release the
transaction's resources.
|
|
TInt Acknowledge(const TDesC8& aAckHeaders);
Acknowledges a transaction. This must be used to accept a confirmed
push from the server. If the protocol option "Acknowledgement Headers" is
enabled for the session, then all method requests are in EReplying
state and the application must call this function to acknowledge the
transaction.
|
|
TInt GetData(TDes8& aBuffer, TDataType aDataType) const;
Gets the data associated with a transaction. If the passed buffer is
smaller than the available data, then the function returns
EMoreData
and the remaining data can be read with successive
calls.
|
|
TInt GetState(TState& aState) const;
Gets the state the transaction is in.
|
|
TInt Release();
Releases the transaction. This must be called for completed or aborted transactions to release the associated resources.
The function succeeds only if the state of the transaction is
EInit
, EAborted
or EDone
. If the
transaction is in any other state, the transaction should be first
aborted.
Note that the transaction can be still alive for a short period after calling this function to be able to finish its last operations. This call causes no network traffic.
|
TDataType
Transaction data types.
|
TState
Transaction states.
|