Skip to content

Synchronous server documentation uses asynchronous example #387

@lyytinen

Description

@lyytinen

The online documentation for v.0.11.0 uses an asynchronous example in the section which discusses the synchronous server:

using namespace boost::network::http; // parameters are in this namespace
handler handler_instance;
async_server<handler>::options options(handler_instance);
options.address("0.0.0.0")
       .port("80")
       .io_service(boost::make_shared<boost::asio::io_service>())
       .thread_pool(boost::make_shared<boost::network::utils::thread_pool>(2))
       .reuse_address(true);
async_server<handler> instance(options);
instance.run();

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions