summaryrefslogtreecommitdiffstats
path: root/modules/enet/networked_multiplayer_enet.h
diff options
context:
space:
mode:
authorHubert Jarosz <marqin.pl@gmail.com>2016-08-27 13:41:34 +0200
committerHubert Jarosz <marqin.pl@gmail.com>2016-08-27 13:41:34 +0200
commit8a4e636df673aad0e0f9a6c927270bf1d4c80a1b (patch)
tree21d416d34b1c82e5f368da09fd8482d1276e064a /modules/enet/networked_multiplayer_enet.h
parentd015d93b8f94f55b26f874781ac7fd0a53e68227 (diff)
downloadredot-engine-8a4e636df673aad0e0f9a6c927270bf1d4c80a1b.tar.gz
add NetworkedMultiplayerENet::set_bind_ip
which allows ENet to bind on custom IP.
Diffstat (limited to 'modules/enet/networked_multiplayer_enet.h')
-rw-r--r--modules/enet/networked_multiplayer_enet.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/enet/networked_multiplayer_enet.h b/modules/enet/networked_multiplayer_enet.h
index dc86058cbb..59863c1f78 100644
--- a/modules/enet/networked_multiplayer_enet.h
+++ b/modules/enet/networked_multiplayer_enet.h
@@ -65,6 +65,7 @@ private:
static void enet_compressor_destroy(void * context);
void _setup_compressor();
+ enet_uint32 bind_ip;
protected:
static void _bind_methods();
public:
@@ -103,6 +104,8 @@ public:
NetworkedMultiplayerENet();
~NetworkedMultiplayerENet();
+
+ void set_bind_ip(const IP_Address& p_ip);
};
VARIANT_ENUM_CAST(NetworkedMultiplayerENet::CompressionMode);