disconnect() -> disconnect_from_client()
This commit is contained in:
parent
b22150de94
commit
440837cdbc
@ -50,6 +50,6 @@ int main() {
|
||||
spdlog::info("Sent {} bytes", sendRes.value());
|
||||
}
|
||||
|
||||
server.disconnect();
|
||||
server.disconnect_from_client();
|
||||
}
|
||||
}
|
||||
|
||||
@ -99,7 +99,7 @@ bool NonBlockingServer::next_client_available() {
|
||||
}
|
||||
|
||||
[[nodiscard]] std::expected<void, int> NonBlockingServer::accept_next_client() {
|
||||
disconnect();
|
||||
disconnect_from_client();
|
||||
|
||||
socklen_t clientAddrLen = sizeof(m_clientAddress);
|
||||
|
||||
@ -113,7 +113,7 @@ bool NonBlockingServer::next_client_available() {
|
||||
return {};
|
||||
}
|
||||
|
||||
void NonBlockingServer::disconnect() {
|
||||
void NonBlockingServer::disconnect_from_client() {
|
||||
close_client_socket();
|
||||
}
|
||||
|
||||
|
||||
@ -39,7 +39,7 @@ public:
|
||||
|
||||
bool next_client_available();
|
||||
[[nodiscard]] std::expected<void, int> accept_next_client();
|
||||
void disconnect();
|
||||
void disconnect_from_client();
|
||||
|
||||
[[nodiscard]] std::expected<std::array<char, 16>, int>
|
||||
get_client_ip_as_string();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user