Location:
wapmessage.h
Link against: wapmsgcli.lib
class CWapFullySpecCLPushService : public CBase;
Listens for WAP Push messages from a single, named remote host.
The class is an ECom plug-in interface. Clients use NewL()
to request an implementation of the interface, and then call the interface's virtual functions to access the implementation's
services.
The use of the plug-in architecture allows different implementations to use different underlying WAP stacks.
Functions can return system wide error codes, and also API-specific errors as defined in wapmsgerr.h
.
CBase
- Base class for all classes to be instantiated on the heap
CWapFullySpecCLPushService
- Listens for WAP Push messages from a single, named remote host
Defined in CWapFullySpecCLPushService
:
AwaitPush()
, CWapFullySpecCLPushService()
, CancelAwaitPush()
, Connect()
, Connect()
, ConstructL()
, GetLocalAddress()
, GetLocalPort()
, NewL()
, NewL()
, ~CWapFullySpecCLPushService()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
static IMPORT_C CWapFullySpecCLPushService *NewL();
Allocates and creates a new CWapFullySpecCLPushService object.
|
|
static IMPORT_C CWapFullySpecCLPushService *NewL(const TUid &aImplementation);
Allocates and creates a new CWapFullySpecCLPushService object.
|
|
|
virtual TInt Connect(const TDesC8 &aRemoteHost, Wap::TPort aRemotePort, Wap::TBearer aBearer, TBool aSecure, TInetAddr aInetAddr)=0;
Connects to the WAP stack, opening an endpoint that can be used to listen for Push messages from a specified remote host.
This overload of Connect()
allows an IP address associated with a network interface to be specified. In multihomed systems, this can be used to specify
the network interface to which the endpoint should be bound.
All CWapFullySpecCLPushService implementations must automatically close this endpoint upon destruction.
|
|
virtual TInt Connect(const TDesC8 &aRemoteHost, Wap::TPort aRemotePort, Wap::TBearer aBearer, TBool aSecure)=0;
Connects to the WAP stack, opening an endpoint that can be used to listen for Push messages from a specified remote host.
All CWapFullySpecCLPushService implementations must automatically close this endpoint upon destruction.
|
|
virtual TInt AwaitPush(TDes8 &aPushHeaders, TDes8 &aPushBody, TPckgBuf< TUint8 > &aPushIdPckg, TRequestStatus &aReqStatus)=0;
Requests an asynchronous notification upon arrival of the next push message on the listening connection.
The request completes upon receipt of the message, filling the buffers with as much received data as possible. A return code indicates whether further data remains. The call must be re-issued for subsequent messages or to receive remaining data from a previous push message.
|
|
virtual void CancelAwaitPush()=0;
Cancels a previous push message request.
If a push message arrives, the client will not be notified.
virtual TInt GetLocalPort(Wap::TPort &aPort)=0;
Gets the local port of this endpoint.
This is useful if the port was chosen automatically.
|
|
virtual TInt GetLocalAddress(HBufC8 *&aLocalHost)=0;
Gets the local address of this endpoint.
|
|