Commit 472f3f6a authored by Mathieu Stefani's avatar Mathieu Stefani Committed by GitHub

Merge pull request #60 from Martchus/fix/misc

Fix missing bind() and wrong comment
parents 8604968a 40e83190
/* endpoint.cc
Mathieu Stefani, 22 janvier 2016
Implementation of the http endpoint
*/
......@@ -53,6 +53,16 @@ Endpoint::setHandler(const std::shared_ptr<Handler>& handler) {
handler_ = handler;
}
void
Endpoint::bind() {
listener.bind();
}
void
Endpoint::bind(const Address& addr) {
listener.bind(addr);
}
void
Endpoint::serve()
{
......
......@@ -351,7 +351,7 @@ void Options(Router& router, std::string resource, Route::Handler handler) {
router.options(std::move(resource), std::move(handler));
}
} // namespace Routing
} // namespace Routes
} // namespace Rest
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment