Added API to retrieve address of current receiver

This commit is contained in:
adamdunkels 2007-11-13 21:00:10 +00:00
parent c40dde1209
commit 1386b8ae8f
2 changed files with 10 additions and 2 deletions

View File

@ -33,7 +33,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: suc.c,v 1.10 2007/05/22 20:57:20 adamdunkels Exp $
* $Id: suc.c,v 1.11 2007/11/13 21:00:10 adamdunkels Exp $
*/
/**
@ -88,6 +88,12 @@ suc_close(struct suc_conn *c)
}
}
/*---------------------------------------------------------------------------*/
rimeaddr_t *
suc_receiver(struct suc_conn *c)
{
return &c->receiver;
}
/*---------------------------------------------------------------------------*/
static void
send(void *ptr)
{

View File

@ -45,7 +45,7 @@
*
* This file is part of the Contiki operating system.
*
* $Id: suc.h,v 1.8 2007/05/22 20:57:20 adamdunkels Exp $
* $Id: suc.h,v 1.9 2007/11/13 21:00:10 adamdunkels Exp $
*/
/**
@ -89,6 +89,8 @@ int suc_send(struct suc_conn *c, rimeaddr_t *receiver);
void suc_set_timer(struct suc_conn *c, clock_time_t t);
rimeaddr_t *suc_receiver(struct suc_conn *c);
#endif /* __SUC_H__ */
/** @} */
/** @} */