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;
|
||||||
|
|
|
@ -193,6 +193,8 @@ public:
|
||||||
* When the device network status chagned, you should invoke this function
|
* When the device network status chagned, you should invoke this function
|
||||||
*/
|
*/
|
||||||
void handleNetworkStatusChanged();
|
void handleNetworkStatusChanged();
|
||||||
|
|
||||||
|
yasio::io_service* getInternalService();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
HttpClient();
|
HttpClient();
|
||||||
|
|
Loading…
Reference in New Issue