Merge pull request #40374 from Faless/udp/server_abstraction

UDPServer uses single socket, abstract clients.
This commit is contained in:
Rémi Verschelde 2020-07-14 16:31:19 +02:00 committed by GitHub
commit 9bdcfc4e87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 274 additions and 105 deletions

View file

@ -640,6 +640,9 @@ int NetworkedMultiplayerENet::get_unique_id() const {
void NetworkedMultiplayerENet::set_refuse_new_connections(bool p_enable) {
refuse_connections = p_enable;
#ifdef GODOT_ENET
enet_host_refuse_new_connections(host, p_enable);
#endif
}
bool NetworkedMultiplayerENet::is_refusing_new_connections() const {