You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
Remove set_ip_type from network classes (no longer needed)
- TCP:
- `listen` bind to wildcard "*" -> dual stack socket
- `listen` bind to address -> socket from address type
- `connect` -> resolve using best protocol (UNSPEC), socket from address type
- UDP:
- `listen` bind to wildcard "*" -> dual stack socket
- `listen` bind to address -> socket from address type
- `put_packet`/`put_var` -> resolve using TYPE_ANY (UNSPEC), socket from address type
(to change socket type you must first call `close` it)
(cherry picked from commit 88a56ba783)
This commit is contained in:
@@ -28,10 +28,6 @@
|
||||
/*************************************************************************/
|
||||
#include "http_request.h"
|
||||
|
||||
void HTTPRequest::set_ip_type(IP::Type p_type) {
|
||||
client->set_ip_type(p_type);
|
||||
}
|
||||
|
||||
void HTTPRequest::_redirect_request(const String &p_new_url) {
|
||||
}
|
||||
|
||||
@@ -519,7 +515,6 @@ int HTTPRequest::get_body_size() const {
|
||||
|
||||
void HTTPRequest::_bind_methods() {
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("set_ip_type", "ip_type"), &HTTPRequest::set_ip_type);
|
||||
ObjectTypeDB::bind_method(_MD("request", "url", "custom_headers", "ssl_validate_domain", "method", "request_data"), &HTTPRequest::request, DEFVAL(StringArray()), DEFVAL(true), DEFVAL(HTTPClient::METHOD_GET), DEFVAL(String()));
|
||||
ObjectTypeDB::bind_method(_MD("cancel_request"), &HTTPRequest::cancel_request);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user