diff options
author | Ariel Manzur <ariel@godotengine.org> | 2016-10-20 07:04:10 -0300 |
---|---|---|
committer | Ariel Manzur <ariel@godotengine.org> | 2016-10-20 07:04:10 -0300 |
commit | 672225b710815865449e7930255468d1c085b137 (patch) | |
tree | 995f4e845e0d908fd27a2dcc583a5a2bd3dbb672 /platform/windows/packet_peer_udp_winsock.h | |
parent | 1c2ac490cf157402cac7f9dbc2a293d0c922def8 (diff) |
added windows support for ipv6, cleaned up unix code
Diffstat (limited to 'platform/windows/packet_peer_udp_winsock.h')
-rw-r--r-- | platform/windows/packet_peer_udp_winsock.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/platform/windows/packet_peer_udp_winsock.h b/platform/windows/packet_peer_udp_winsock.h index b24dbac592..9837ef6621 100644 --- a/platform/windows/packet_peer_udp_winsock.h +++ b/platform/windows/packet_peer_udp_winsock.h @@ -42,15 +42,15 @@ class PacketPeerUDPWinsock : public PacketPeerUDP { mutable RingBuffer<uint8_t> rb; uint8_t recv_buffer[PACKET_BUFFER_SIZE]; mutable uint8_t packet_buffer[PACKET_BUFFER_SIZE]; - IP_Address packet_ip; - int packet_port; + mutable IP_Address packet_ip; + mutable int packet_port; mutable int queue_count; int sockfd; IP_Address peer_addr; int peer_port; - _FORCE_INLINE_ int _get_socket(); + _FORCE_INLINE_ int _get_socket(IP_Address::AddrType p_type); static PacketPeerUDP* _create(); @@ -67,7 +67,7 @@ public: virtual int get_max_packet_size() const; - virtual Error listen(int p_port,int p_recv_buffer_size=65536); + virtual Error listen(int p_port, IP_Address::AddrType p_address_type, int p_recv_buffer_size=65536); virtual void close(); virtual Error wait(); virtual bool is_listening() const; |