MCPcopy Create free account
hub / github.com/acl-dev/acl / set

Method set

app/master/tools/master_dispatch/server/client/ClientManager.cpp:5–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include "client/ClientManager.h"
4
5void ClientManager::set(ClientConnection* conn)
6{
7 std::vector<ClientConnection*>::iterator it = conns_.begin();
8 for (; it != conns_.end(); ++it)
9 {
10 if ((*it) == conn)
11 {
12 logger_warn("duplicate ClientConnection!");
13 return;
14 }
15 }
16
17 conns_.push_back(conn);
18}
19
20void ClientManager::del(ClientConnection* conn)
21{

Callers 6

create_clusterMethod · 0.45
mainFunction · 0.45
runMethod · 0.45
timer_callbackMethod · 0.45
proc_on_initMethod · 0.45

Calls 3

beginMethod · 0.80
endMethod · 0.45
push_backMethod · 0.45

Tested by 1

mainFunction · 0.36