diff options
| author | Fabio Alessandrelli | 2016-11-30 20:45:19 +0100 |
|---|---|---|
| committer | Fabio Alessandrelli | 2017-01-04 00:46:32 +0100 |
| commit | a46a643f90b4a5e93f94e9223e58a7bf83dc4e2a (patch) | |
| tree | 1b7c097008eb4a47257a9af519a26f15a1ac4220 /drivers/unix/tcp_server_posix.h | |
| parent | c030e602e52034a4dc9f26b76e55ecd272f4cf6f (diff) | |
| download | godot-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.h | 2 |
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(); |
