mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-19 03:33:56 +00:00
Fix compilation
This commit is contained in:
@@ -13,7 +13,13 @@ namespace network
|
||||
|
||||
address a{};
|
||||
auto len = a.get_max_size();
|
||||
return ::accept(this->get_socket(), &a.get_addr(), &len);
|
||||
const auto s = ::accept(this->get_socket(), &a.get_addr(), &len);
|
||||
if (s == INVALID_SOCKET)
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
||||
return {s, a};
|
||||
}
|
||||
|
||||
void tcp_server_socket::listen()
|
||||
|
||||
Reference in New Issue
Block a user