コード例 #1
0
ファイル: ConnectionProvider.cpp プロジェクト: caocao/naali
 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;
 }
コード例 #2
0
ファイル: ConnectionProvider.cpp プロジェクト: A-K/naali
    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;
    }
コード例 #3
0
 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;
 }