mirror of https://github.com/axmolengine/axmol.git
Add HttpClient::getInternalService
This commit is contained in:
parent
14b08f77cc
commit
14a295af52
|
@ -148,6 +148,11 @@ void HttpClient::handleNetworkStatusChanged()
|
||||||
_service->set_option(YOPT_S_DNS_DIRTY, 1);
|
_service->set_option(YOPT_S_DNS_DIRTY, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
yasio::io_service* HttpClient::getInternalService()
|
||||||
|
{
|
||||||
|
return _service;
|
||||||
|
}
|
||||||
|
|
||||||
bool HttpClient::send(HttpRequest* request) {
|
bool HttpClient::send(HttpRequest* request) {
|
||||||
if (!request)
|
if (!request)
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -194,6 +194,8 @@ public:
|
||||||
*/
|
*/
|
||||||
void handleNetworkStatusChanged();
|
void handleNetworkStatusChanged();
|
||||||
|
|
||||||
|
yasio::io_service* getInternalService();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
HttpClient();
|
HttpClient();
|
||||||
virtual ~HttpClient();
|
virtual ~HttpClient();
|
||||||
|
|
Loading…
Reference in New Issue