summaryrefslogtreecommitdiff
path: root/core/io/stream_peer_tcp.h
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2016-11-30 20:45:19 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2016-12-09 18:24:59 +0100
commit95bdd977686005d3d813eb09aca625384f1774c1 (patch)
tree6d80a57751e2b9af75824e5b0e5bd1a53819b226 /core/io/stream_peer_tcp.h
parent311f1f165be12ea290799e42f9951011d997ab40 (diff)
Use an instance variable for ip_type in raw sockets
PacketPeerUDP/StreamPeerTCP/TCP_Server now uses an instance variable to store the selected ip_type (IPv4/IPv6/ANY, where ANY = dual stack). All calls to resolve addresses, sending/receving data, connecting/listening will use that socket type.
Diffstat (limited to 'core/io/stream_peer_tcp.h')
-rw-r--r--core/io/stream_peer_tcp.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/io/stream_peer_tcp.h b/core/io/stream_peer_tcp.h
index a151fffad8..10e061972b 100644
--- a/core/io/stream_peer_tcp.h
+++ b/core/io/stream_peer_tcp.h
@@ -51,7 +51,9 @@ public:
protected:
- virtual Error _connect(const String& p_address, int p_port, IP_Address::AddrType p_type = IP_Address::TYPE_ANY);
+ IP_Address::AddrType ip_type;
+
+ virtual Error _connect(const String& p_address, int p_port);
static StreamPeerTCP* (*_create)();
static void _bind_methods();