You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Implement get_peer_[address|port] in ENet/WSServer
Also implement get_connected_host and get_connected_port in WebSocketPeer (not supported in HTML5 due to browser limitation). Add shorthand disconnect_peer(id) for get_peer(id)->close() like in ENet to WebSocketServer.
This commit is contained in:
@@ -58,6 +58,19 @@ PoolVector<String> EMWSServer::get_protocols() const {
|
||||
return out;
|
||||
}
|
||||
|
||||
IP_Address EMWSServer::get_peer_address(int p_peer_id) const {
|
||||
|
||||
return IP_Address();
|
||||
}
|
||||
|
||||
int EMWSServer::get_peer_port(int p_peer_id) const {
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void EMWSServer::disconnect_peer(int p_peer_id) {
|
||||
}
|
||||
|
||||
EMWSServer::EMWSServer() {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user