14 connections_[name] = nextConnection;
15 return nextConnection;
21 for (
auto& keyValue : connections_) {
22 if (keyValue.second == connection) {
23 channel = keyValue.first;
27 if (channel.length() > 0) {
28 connections_.erase(channel);
36 return connection > 0;
static Connection MakeErrorConnection(int errCode)
std::string CleanupConnection(Connection connection)
Connection AquireConnection(const std::string &name)
static bool IsValidConnection(Connection connection)