bugfix: remember active transmissions (sender side) instead of last received packets (receiving side). allows several nodes sending to a single receiver.
+ added function for checking if runicast is currently transmitting (non-acked) data
This commit is contained in:
parent
35e3efa0a6
commit
f701615afa
2 changed files with 22 additions and 14 deletions
|
@ -45,7 +45,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: runicast.h,v 1.2 2009/02/17 12:40:18 fros4943 Exp $
|
||||
* $Id: runicast.h,v 1.3 2009/03/03 12:19:46 fros4943 Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -75,7 +75,7 @@ struct runicast_conn {
|
|||
struct stunicast_conn c;
|
||||
const struct runicast_callbacks *u;
|
||||
uint8_t sndnxt;
|
||||
uint8_t lastrecv;
|
||||
uint8_t is_tx;
|
||||
uint8_t rxmit;
|
||||
uint8_t max_rxmit;
|
||||
};
|
||||
|
@ -86,6 +86,8 @@ void runicast_close(struct runicast_conn *c);
|
|||
|
||||
int runicast_send(struct runicast_conn *c, rimeaddr_t *receiver, uint8_t max_retransmissions);
|
||||
|
||||
uint8_t runicast_is_transmitting(struct runicast_conn *c);
|
||||
|
||||
#endif /* __RUNICAST_H__ */
|
||||
/** @} */
|
||||
/** @} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue