Skip to content
Snippets Groups Projects
Commit e233fc97 authored by Leon Dietrich's avatar Leon Dietrich
Browse files

chg: moved implementation of async_socket constructors to cpp file

parent e08520a0
No related branches found
No related tags found
No related merge requests found
......@@ -25,16 +25,8 @@ private:
ev::io io;
public:
async_server_socket(auto_fd &&fd) : socket(std::forward(fd)) {
// This constructor got a constructed socket as an argument
// and forwards it to libev
io.set<async_server_socket, &async_server_socket::cb_ev>(this);
io.start(this->socket.get(), ev::READ);
}
~async_server_socket() {
// Remove this socket from libev ...
io.stop();
}
async_server_socket(auto_fd &&fd);
~async_server_socket();
public:
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