mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
add 'network.find_free_port' function
This commit is contained in:
parent
5b3e88bbf1
commit
1f1cb22e4d
4 changed files with 34 additions and 0 deletions
|
|
@ -88,6 +88,8 @@ namespace network {
|
|||
[[nodiscard]] Connection* getConnection(u64id_t id, bool includePrivate);
|
||||
[[nodiscard]] Server* getServer(u64id_t id, bool includePrivate) const;
|
||||
|
||||
int findFreePort() const;
|
||||
|
||||
u64id_t connectTcp(
|
||||
const std::string& address,
|
||||
int port,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue