diff options
author | Fabian <supagu@gmail.com> | 2020-01-20 17:13:12 +1030 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-02-27 12:52:12 +0100 |
commit | 1b54de3039d39bae6ec381321888d211fafaef2e (patch) | |
tree | d1f2f1f1312b7b01b436aea21226ddc6480389c5 /modules/enet/networked_multiplayer_enet.h | |
parent | 7b685a1558aaa7e014d358c2db8be83aef5d8b8f (diff) | |
download | redot-engine-1b54de3039d39bae6ec381321888d211fafaef2e.tar.gz |
Add set_peer_timeout to NetworkedMultiplayerENet.
Diffstat (limited to 'modules/enet/networked_multiplayer_enet.h')
-rw-r--r-- | modules/enet/networked_multiplayer_enet.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/enet/networked_multiplayer_enet.h b/modules/enet/networked_multiplayer_enet.h index eb70d71c2c..b99b14d218 100644 --- a/modules/enet/networked_multiplayer_enet.h +++ b/modules/enet/networked_multiplayer_enet.h @@ -127,6 +127,7 @@ public: virtual IP_Address get_peer_address(int p_peer_id) const; virtual int get_peer_port(int p_peer_id) const; + void set_peer_timeout(int p_peer_id, int p_timeout_limit, int p_timeout_min, int p_timeout_max); Error create_server(int p_port, int p_max_clients = 32, int p_in_bandwidth = 0, int p_out_bandwidth = 0); Error create_client(const String &p_address, int p_port, int p_in_bandwidth = 0, int p_out_bandwidth = 0, int p_client_port = 0); |