ns-allinone-2.35/pgm/pgm-agent.cc
StateInfo * PgmAgent::find_TSI(ns_addr_t &tsi)
{

  // Use the TSI from the SPM packet and locate the proper state block.
  list<StateInfo>::iterator iter = state_list_.begin();
  while(iter != state_list_.end()) {
    if ( (*iter).tsi().isEqual (tsi) ) {
      return &(*iter);
    }
    iter++;
  }

  return NULL;
}
// Find the state control block given a TSI. Returns NULL if not found.
Find the state control block given a TSI. Returns NULL if not found.
Find the state control block given a TSI . Returns NULL if not found .
StateInfo * PgmAgent::find_TSI(ns_addr_t &tsi)
{
  list<StateInfo>::iterator iter = state_list_.begin();
  while(iter != state_list_.end()) {
    if ( (*iter).tsi().isEqual (tsi) ) {
      return &(*iter);
    }
    iter++;
  }
  return NULL;
}
StateInfo * PgmAgent :: find_TSI ( ns_addr_t & tsi ) { list < StateInfo > :: iterator iter = state_list_ . begin ( ) ; while ( iter != state_list_ . end ( ) ) { if ( ( * iter ) . tsi ( ) . isEqual ( tsi ) ) { return & ( * iter ) ; } iter ++ ; } return NULL ; }
Find the state control block given a TSI.
Find the state control block given a TSI .
// Use the TSI from the SPM packet and locate the proper state block.