Commit 6c6aca9f authored by Martchus's avatar Martchus

Implement Endpoint::bind()

parent 8604968a
...@@ -53,6 +53,16 @@ Endpoint::setHandler(const std::shared_ptr<Handler>& handler) { ...@@ -53,6 +53,16 @@ Endpoint::setHandler(const std::shared_ptr<Handler>& handler) {
handler_ = handler; handler_ = handler;
} }
void
Endpoint::bind() {
listener.bind();
}
void
Endpoint::bind(const Address& addr) {
listener.bind(addr);
}
void void
Endpoint::serve() Endpoint::serve()
{ {
......
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