diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2016-11-30 20:45:19 +0100 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2016-12-09 18:24:59 +0100 |
commit | 95bdd977686005d3d813eb09aca625384f1774c1 (patch) | |
tree | 6d80a57751e2b9af75824e5b0e5bd1a53819b226 /drivers/unix/stream_peer_tcp_posix.h | |
parent | 311f1f165be12ea290799e42f9951011d997ab40 (diff) | |
download | redot-engine-95bdd977686005d3d813eb09aca625384f1774c1.tar.gz |
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 '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 a379efe3ca..1d3e94c7c2 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; |