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

chg: Implement async_server functions in header

parent d7bc923d
No related branches found
No related tags found
1 merge request!1First unit tests
......@@ -53,14 +53,4 @@ void async_server_socket::cb_ev(::ev::io &w, int events) {
}
}
inline void async_server_socket::set_accept_handler(
const accept_handler_type &value
) {
on_accept = value;
}
inline async_server_socket::accept_handler_type async_server_socket::get_accept_handler() const {
return on_accept;
}
}
......@@ -58,7 +58,9 @@ public:
* @brief get the current registered accept handler
* @return The current accept handler
*/
accept_handler_type get_accept_handler() const;
inline accept_handler_type get_accept_handler() const {
return on_accept;
}
/**
* Use this method in order to set a new incomming socket acceptance handler.
......@@ -66,7 +68,9 @@ public:
* @brief Set a new acceptance handler
* @param value The new handler to set
*/
void set_accept_handler(const accept_handler_type &value);
inline void set_accept_handler(const accept_handler_type& value) {
on_accept = value;
}
private:
void cb_ev(::ev::io &w, int events);
......
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