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/stream_peer_tcp_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/stream_peer_tcp_posix.h')
| -rw-r--r-- | drivers/unix/stream_peer_tcp_posix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/unix/stream_peer_tcp_posix.h b/drivers/unix/stream_peer_tcp_posix.h index a379efe3c..1d3e94c7c 100644 --- a/drivers/unix/stream_peer_tcp_posix.h +++ b/drivers/unix/stream_peer_tcp_posix.h @@ -69,7 +69,7 @@ public: virtual int get_available_bytes() const; - void set_socket(int p_sockfd, IP_Address p_host, int p_port); + void set_socket(int p_sockfd, IP_Address p_host, int p_port, IP_Address::AddrType p_ip_type); virtual IP_Address get_connected_host() const; virtual uint16_t get_connected_port() const; |
