sumo/src/traci-server/TraCIServer.cpp
// send out subscription results to clients which will act in this step (i.e. with client target time <= myTargetTime)
send out subscription results to clients which will act in this step
send out subscription results to clients which will act in this step
void
TraCIServer::sendOutputToAll() const {
#ifdef DEBUG_MULTI_CLIENTS
    std::cout << "\n    Sending subscription results to clients:\n";
#endif
    std::map<int, SocketInfo*>::const_iterator i = mySockets.begin();
    while (i != mySockets.end()) {
        if (i->second->targetTime <= MSNet::getInstance()->getCurrentTimeStep()) {
            i->second->socket->sendExact(myOutputStorage);
#ifdef DEBUG_MULTI_CLIENTS
            std::cout << i->second->socket << "\n";
#endif
        }
        ++i;
    }
#ifdef DEBUG_MULTI_CLIENTS
    std::cout << std::endl;
#endif
}
void TraCIServer :: sendOutputToAll ( ) const { #ifdef DEBUG_MULTI_CLIENTS std :: cout << " \n \n " ; #endif std :: map < int , SocketInfo * > :: const_iterator i = mySockets . begin ( ) ; while ( i != mySockets . end ( ) ) { if ( i -> second -> targetTime <= MSNet :: getInstance ( ) -> getCurrentTimeStep ( ) ) { i -> second -> socket -> sendExact ( myOutputStorage ) ; #ifdef DEBUG_MULTI_CLIENTS std :: cout << i -> second -> socket << " \n " ; #endif } ++ i ; } #ifdef DEBUG_MULTI_CLIENTS std :: cout << std :: endl ; #endif }
send out subscription results to clients which will act in this step (i.e.
send out subscription results to clients which will act in this step ( i . e .
// this client will become active before the next SUMO step. Provide subscription results.