MCPcopy Create free account
hub / github.com/chenshuo/muduo / onStringMessage

Method onStringMessage

examples/asio/chat/server.cc:51–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 }
50
51 void onStringMessage(const TcpConnectionPtr&,
52 const string& message,
53 Timestamp)
54 {
55 for (ConnectionList::iterator it = connections_.begin();
56 it != connections_.end();
57 ++it)
58 {
59 codec_.send(get_pointer(*it), message);
60 }
61 }
62
63 typedef std::set<TcpConnectionPtr> ConnectionList;
64 TcpServer server_;

Callers

nothing calls this directly

Calls 4

get_pointerFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected