Skip to content
Snippets Groups Projects
Verified Commit ab7f0de8 authored by Benny Baumann's avatar Benny Baumann
Browse files

fix: Const correctness

parent 98ba9fd3
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,7 @@ void tcp_server_socket::await_raw_socket_incomming(async_server_socket::self_ptr
this->client_listener(tcp_client(std::bind(&tcp_server_socket::client_destructed_cb, this, _1), auto_fd(client_fd_raw), address, port));
}
int tcp_server_socket::get_number_of_connected_clients() {
int tcp_server_socket::get_number_of_connected_clients() const {
return this->number_of_connected_clients;
}
......
......@@ -25,7 +25,7 @@ private:
int number_of_connected_clients;
public:
tcp_server_socket(uint16_t port, incoming_client_listener_type client_listener_);
int get_number_of_connected_clients();
int get_number_of_connected_clients() const;
private:
void await_raw_socket_incomming(async_server_socket::self_ptr_type ass, const auto_fd& socket);
void client_destructed_cb(tcp_client::exit_status exit_status);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment