I'm looking at the source code for drip in 2.1.0 and dissemination in 2.0 
(which is the same for DisseminationEngineImplP.nc).

There's an event:
  event message_t* ProbeReceive.receive( message_t* msg, 
                     void* payload, 
                     uint8_t len) {
    
    dissemination_probe_message_t* dpMsg = 
      (dissemination_probe_message_t*) payload;

    if ( !m_running ) { return msg; }

    if ( call DisseminationCache.requestSeqno[ dpMsg->key ]() != 
     DISSEMINATION_SEQNO_UNKNOWN ) {    
      sendObject( dpMsg->key );
    }

    return msg;
  }

and command:
  default command uint32_t 
    DisseminationCache.requestSeqno[uint16_t key]() { return 
DISSEMINATION_SEQNO_UNKNOWN; }

My question is "when will the condition ( call DisseminationCache.requestSeqno[ 
dpMsg->key ]() != 

     DISSEMINATION_SEQNO_UNKNOWN ) be true?"

In other words, call DisseminationCache.requestSeqno[ dpMsg->key ]() will 
ALWAYS equal DISSEMINATION_SEQNO_UNKNOWN, won't it?

Is that code compiled out, or, better, yet, what was that code supposed to do?

Regards,
Kurt
                                          
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to