| 65 | typedef std::shared_ptr<ConnectionList> ConnectionListPtr; |
| 66 | |
| 67 | void onStringMessage(const TcpConnectionPtr&, |
| 68 | const string& message, |
| 69 | Timestamp) |
| 70 | { |
| 71 | ConnectionListPtr connections = getConnectionList(); |
| 72 | for (ConnectionList::iterator it = connections->begin(); |
| 73 | it != connections->end(); |
| 74 | ++it) |
| 75 | { |
| 76 | codec_.send(get_pointer(*it), message); |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | ConnectionListPtr getConnectionList() |
| 81 | { |
nothing calls this directly
no test coverage detected