MCPcopy Create free account
hub / github.com/boostorg/asio / server

Method server

example/cpp11/fork/process_per_connection.cpp:26–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24{
25public:
26 server(boost::asio::io_context& io_context, unsigned short port)
27 : io_context_(io_context),
28 signal_(io_context, SIGCHLD),
29 acceptor_(io_context, {tcp::v4(), port}),
30 socket_(io_context)
31 {
32 wait_for_signal();
33 accept();
34 }
35
36private:
37 void wait_for_signal()

Callers

nothing calls this directly

Calls 1

acceptFunction · 0.85

Tested by

no test coverage detected