diff options
author | Ariel Manzur <ariel@godotengine.org> | 2016-10-18 18:53:18 -0300 |
---|---|---|
committer | Ariel Manzur <ariel@godotengine.org> | 2016-10-18 18:53:18 -0300 |
commit | 887a897c02144f2d01896d3112bdae5ce7d6df5c (patch) | |
tree | 5557c275d7cf9d32312b66db8f1003676e318d16 /drivers/unix/packet_peer_udp_posix.h | |
parent | 048bffd13a49067e646f65152c3cc6b87bacc1c3 (diff) |
adding ipv6
Diffstat (limited to 'drivers/unix/packet_peer_udp_posix.h')
-rw-r--r-- | drivers/unix/packet_peer_udp_posix.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/unix/packet_peer_udp_posix.h b/drivers/unix/packet_peer_udp_posix.h index a11282e5d6..13b6969e53 100644 --- a/drivers/unix/packet_peer_udp_posix.h +++ b/drivers/unix/packet_peer_udp_posix.h @@ -44,15 +44,15 @@ class PacketPeerUDPPosix : 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(); virtual Error _poll(bool p_block); @@ -65,7 +65,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; |