aboutsummaryrefslogtreecommitdiff
path: root/drivers/unix/tcp_server_posix.h
diff options
context:
space:
mode:
authorFabio Alessandrelli2016-11-30 20:45:19 +0100
committerFabio Alessandrelli2017-01-04 00:46:32 +0100
commita46a643f90b4a5e93f94e9223e58a7bf83dc4e2a (patch)
tree1b7c097008eb4a47257a9af519a26f15a1ac4220 /drivers/unix/tcp_server_posix.h
parentc030e602e52034a4dc9f26b76e55ecd272f4cf6f (diff)
downloadgodot-a46a643f90b4a5e93f94e9223e58a7bf83dc4e2a.tar.gz
godot-a46a643f90b4a5e93f94e9223e58a7bf83dc4e2a.tar.zst
godot-a46a643f90b4a5e93f94e9223e58a7bf83dc4e2a.zip
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. (cherry picked from commit 95bdd977686005d3d813eb09aca625384f1774c1)
Diffstat (limited to 'drivers/unix/tcp_server_posix.h')
-rw-r--r--drivers/unix/tcp_server_posix.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/unix/tcp_server_posix.h b/drivers/unix/tcp_server_posix.h
index a700b6ae0..570bcaab1 100644
--- a/drivers/unix/tcp_server_posix.h
+++ b/drivers/unix/tcp_server_posix.h
@@ -40,7 +40,7 @@ class TCPServerPosix : public TCP_Server {
public:
- virtual Error listen(uint16_t p_port, IP_Address::AddrType p_type, const List<String> *p_accepted_hosts=NULL);
+ virtual Error listen(uint16_t p_port,const List<String> *p_accepted_hosts=NULL);
virtual bool is_connection_available() const;
virtual Ref<StreamPeerTCP> take_connection();