MCPcopy Create free account
hub / github.com/apache/brpc / List

Method List

src/brpc/socket_map.cpp:353–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353void SocketMap::List(std::vector<SocketId>* ids) {
354 ids->clear();
355 BAIDU_SCOPED_LOCK(_mutex);
356 for (Map::iterator it = _map.begin(); it != _map.end(); ++it) {
357 ids->push_back(it->second.socket->id());
358 }
359}
360
361void SocketMap::List(std::vector<butil::EndPoint>* pts) {
362 pts->clear();

Callers 3

SocketMapListFunction · 0.45
PrintSupportedLBFunction · 0.45
PrintSupportedNSFunction · 0.45

Calls 6

clearMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45
idMethod · 0.45
remote_sideMethod · 0.45

Tested by

no test coverage detected