summaryrefslogtreecommitdiff
path: root/drivers/unix/packet_peer_udp_posix.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-03-24 22:47:18 +0100
committerGitHub <noreply@github.com>2017-03-24 22:47:18 +0100
commit296ece2c6a61630bfdb9b31dce46e5e2d1cda7cf (patch)
tree934c3f266fa8a76bab60f68a6ab825236b7e7959 /drivers/unix/packet_peer_udp_posix.h
parentf1e05d31444f46906e8bd155c0dd7d7a9a018451 (diff)
parent0450e6539ea77f8c56b244aef27ec45c69e1dcdb (diff)
Merge pull request #7985 from Faless/enet_godot_sock_squash
Update ENet to use Godot sockets.
Diffstat (limited to 'drivers/unix/packet_peer_udp_posix.h')
-rw-r--r--drivers/unix/packet_peer_udp_posix.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/unix/packet_peer_udp_posix.h b/drivers/unix/packet_peer_udp_posix.h
index b44ef49f2c..60d5bf6580 100644
--- a/drivers/unix/packet_peer_udp_posix.h
+++ b/drivers/unix/packet_peer_udp_posix.h
@@ -47,6 +47,7 @@ class PacketPeerUDPPosix : public PacketPeerUDP {
mutable int packet_port;
mutable int queue_count;
int sockfd;
+ bool sock_blocking;
IP::Type sock_type;
IP_Address peer_addr;
@@ -55,6 +56,7 @@ class PacketPeerUDPPosix : public PacketPeerUDP {
_FORCE_INLINE_ int _get_socket();
static PacketPeerUDP *_create();
+ void _set_sock_blocking(bool p_blocking);
virtual Error _poll(bool p_block);
public: