aboutsummaryrefslogtreecommitdiff
path: root/core/io/http_client.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli2016-12-01 06:34:05 +0100
committerFabio Alessandrelli2017-01-04 00:46:32 +0100
commite8a6cbc8979089839cddecce6f59a053f4416640 (patch)
treef5671d5fcc72761dfdae09a5b0bbb9734434c41e /core/io/http_client.cpp
parent47ae6c6507e1081e48d34c21cc3925ee3ae95a47 (diff)
downloadgodot-e8a6cbc8979089839cddecce6f59a053f4416640.tar.gz
godot-e8a6cbc8979089839cddecce6f59a053f4416640.tar.zst
godot-e8a6cbc8979089839cddecce6f59a053f4416640.zip
Migrate int.IP_TYPE_ constants to IP.TYPE_
(cherry picked from commit c18c5013f837ea7d4de2f022d36f84e0abce6439)
Diffstat (limited to 'core/io/http_client.cpp')
-rw-r--r--core/io/http_client.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/io/http_client.cpp b/core/io/http_client.cpp
index e3289b452..c9c674d4f 100644
--- a/core/io/http_client.cpp
+++ b/core/io/http_client.cpp
@@ -29,9 +29,7 @@
#include "http_client.h"
#include "io/stream_peer_ssl.h"
-VARIANT_ENUM_CAST(IP_Address::AddrType);
-
-Error HTTPClient::connect(const String &p_host, int p_port, bool p_ssl,bool p_verify_host, IP_Address::AddrType p_addr_type){
+Error HTTPClient::connect(const String &p_host, int p_port, bool p_ssl,bool p_verify_host, IP::Type p_addr_type){
close();
conn_port=p_port;
@@ -636,7 +634,7 @@ Error HTTPClient::_get_http_data(uint8_t* p_buffer, int p_bytes,int &r_received)
void HTTPClient::_bind_methods() {
- ObjectTypeDB::bind_method(_MD("connect:Error","host","port","use_ssl","verify_host"),&HTTPClient::connect,DEFVAL(false),DEFVAL(true),DEFVAL(IP_Address::TYPE_ANY));
+ ObjectTypeDB::bind_method(_MD("connect:Error","host","port","use_ssl","verify_host"),&HTTPClient::connect,DEFVAL(false),DEFVAL(true),DEFVAL(IP::TYPE_ANY));
ObjectTypeDB::bind_method(_MD("set_connection","connection:StreamPeer"),&HTTPClient::set_connection);
ObjectTypeDB::bind_method(_MD("get_connection:StreamPeer"),&HTTPClient::get_connection);
ObjectTypeDB::bind_method(_MD("request_raw","method","url","headers","body"),&HTTPClient::request_raw);