ns-allinone-2.35/pgm/pgm-sender.cc
void PgmSender::timeout(int type, void *data)
{
  switch(type) {
  case TIMER_SPM:
    if (spm_running_) {
      send_spm();
      spm_heartbeat_.resched(spm_interval_);
    }
    break;
  case TIMER_RDATA:
    send_rdata((RdataItem *)data);
    break;
  default:
    printf("ERROR (PgmSender::timeout): invalid timeout type.\n");
    break;
  }

}
// Code that is called when a timer expires.
Code that is called when a timer expires.
Code that is called when a timer expires .
void PgmSender::timeout(int type, void *data)
{
  switch(type) {
  case TIMER_SPM:
    if (spm_running_) {
      send_spm();
      spm_heartbeat_.resched(spm_interval_);
    }
    break;
  case TIMER_RDATA:
    send_rdata((RdataItem *)data);
    break;
  default:
    printf("ERROR (PgmSender::timeout): invalid timeout type.\n");
    break;
  }
}
void PgmSender :: timeout ( int type , void * data ) { switch ( type ) { case TIMER_SPM : if ( spm_running_ ) { send_spm ( ) ; spm_heartbeat_ . resched ( spm_interval_ ) ; } break ; case TIMER_RDATA : send_rdata ( ( RdataItem * ) data ) ; break ; default : printf ( " \n " ) ; break ; } }
Code that is called when a timer expires.
Code that is called when a timer expires .