You.i Engine
IYINetworkService Class Referenceabstract

Detailed Description

The base interface class for HTTP Service CYIHTTPService.

#include <network/YiNetworkService.h>

Inheritance diagram for IYINetworkService:

Public Member Functions

virtual ~IYINetworkService ()=default
 
virtual bool EnqueueRequest (const std::shared_ptr< CYIHTTPRequest > &pRequest)=0
 
virtual void CancelRequest (const std::shared_ptr< CYIHTTPRequest > &pRequest)=0
 

Constructor & Destructor Documentation

virtual IYINetworkService::~IYINetworkService ( )
virtualdefault

Member Function Documentation

virtual void IYINetworkService::CancelRequest ( const std::shared_ptr< CYIHTTPRequest > &  pRequest)
pure virtual

Cancels the previously enqueued HTTP request.

Implemented in CYIHTTPService.

virtual bool IYINetworkService::EnqueueRequest ( const std::shared_ptr< CYIHTTPRequest > &  pRequest)
pure virtual

Queues an HTTP Request for async processing. Returns true if the request is accepted.

Connect to NotifyResponse and NotifyError on pRequest to be notified when the response is ready, or the request failed.

See also
CYIHTTPRequest

Implemented in CYIHTTPService.


The documentation for this class was generated from the following file: