forked from boostorg/beast
1 parent
490b9ce893
commit
a4714746dc
18 files changed
+122
No files matched your search
@@ -92,6 +92,11 @@ do_listen(
|
||||
if(ec)
|
||||
return fail(ec, "open");
|
||||
|
||||
// Allow address reuse
|
||||
acceptor.set_option(boost::asio::socket_base::reuse_address(true));
|
||||
if(ec)
|
||||
return fail(ec, "set_option");
|
||||
|
||||
// Bind to the server address
|
||||
acceptor.bind(endpoint, ec);
|
||||
if(ec)
|
||||
|
||||
Reference in new issue
Block a user