Finish tcp client socket

This commit is contained in:
momo5502
2025-01-12 08:23:47 +01:00
parent 21e2f6f999
commit 8333c25f2c
9 changed files with 57 additions and 30 deletions

View File

@@ -62,9 +62,9 @@ namespace network
}
}
bool socket::bind_port(const address& target)
bool socket::bind(const address& target)
{
return bind(this->socket_, &target.get_addr(), target.get_size()) == 0;
return ::bind(this->socket_, &target.get_addr(), target.get_size()) == 0;
}
bool socket::set_blocking(const bool blocking)