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

Method deliver

example/cpp20/coroutines/chat_server.cpp:66–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 }
65
66 void deliver(const std::string& msg)
67 {
68 recent_msgs_.push_back(msg);
69 while (recent_msgs_.size() > max_recent_msgs)
70 recent_msgs_.pop_front();
71
72 for (auto participant: participants_)
73 participant->deliver(msg);
74 }
75
76private:
77 std::set<chat_participant_ptr> participants_;

Callers 2

joinMethod · 0.45
readerMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected