diff options
author | dam <daniel.almeida.martins@outlook.com> | 2021-03-21 10:15:30 +0000 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-04-12 21:05:33 +0200 |
commit | da8c2310b5b2eae941fa1465495409086397127f (patch) | |
tree | e010f94062e83bb88ce739a75c01a86dcce9c7b5 /core/io/tcp_server.h | |
parent | cee5414698b14be3ce837b4c9de3a3d500d28611 (diff) | |
download | redot-engine-da8c2310b5b2eae941fa1465495409086397127f.tar.gz |
Allow local port control on net_socket connections
Diffstat (limited to 'core/io/tcp_server.h')
-rw-r--r-- | core/io/tcp_server.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/io/tcp_server.h b/core/io/tcp_server.h index f06ddd2d99..58c04d87ec 100644 --- a/core/io/tcp_server.h +++ b/core/io/tcp_server.h @@ -49,6 +49,7 @@ protected: public: Error listen(uint16_t p_port, const IP_Address &p_bind_address = IP_Address("*")); + int get_local_port() const; bool is_listening() const; bool is_connection_available() const; Ref<StreamPeerTCP> take_connection(); |