Communication::ConnectionVector ConnectionProvider::GetConnections() const { Communication::ConnectionVector v; for (ConnectionVector::const_iterator i = connections_.begin(); i != connections_.end(); ++i) { Connection* connection = *i; v.push_back(connection); } return v; }
Communication::ConnectionVector ConnectionProvider::GetConnections() const { Communication::ConnectionVector vector; for ( ConnectionVector::const_iterator i = connections_.begin(); i != connections_.end(); ++i) { vector.push_back(*i); } return vector; }
ConnectionVector CommunicationService::GetConnections() const { Communication::ConnectionVector connections; for (ConnectionVector::const_iterator i = connections_.begin(); i != connections_.end(); ++i) { Communication::ConnectionInterface* connection = *i; if (connection->GetState() == Communication::ConnectionInterface::STATE_OPEN) connections.push_back(connection); } return connections; }