- From: Michael Tuexen <Michael.Tuexen AT micmac.franken.de>
- To: Salbrechter Bernd <bernd.salbrechter AT siemens.at>
- Cc: discussion AT sctp.de
- Subject: RE: [SCTP-Discussion] Details about Timer.
- Date: Tue Aug 7 14:55:01 2001
- List-id: SCTP Discussions <discussion.sctp.de>
Dear all,
please have a look at echo_tool.c which implements a "loop", which
does something (print statistics) periodically.
Best regards and Happy SCTPing
Michael
You wrote:
>
Hello all!
>
I'm need timer in my application, which uses the SCTP adaption layer.
>
I'm quite shure what sctp_startTimer do and hope that sctp_stopTimer removes
>
the timer completly.
>
But could I use sctp_restartTimer, if I want to trigger the timer caused the
>
currently processed timeout again. Or will a timer that triggers automaticly
>
deleted?
>
In other words: Will the following C-fragment work or not?
>
void timeout(
>
unsigned int timerid,
>
void * p1
>
void * p2)
>
{
>
sctp_restartTimer(timerid, 1000); /* Call me again one seconde later.
>
*/
>
}
>
int
>
main(
>
int argc,
>
char **argv)
>
{
>
/* Some initailization. */
>
>
(void) sctp_startTimer(1000, timeout, NULL, NULL);
>
>
/* The SCTP mainloop. */
>
}
>
Regards
>
Bernd
>
PS.: We currently work with 1.0-pre13, but that should not matter in this
>
case. And I don't have any code running now I'm in a designe phase.
>
_______________________________________________
>
discussion mailing list
>
discussion AT sctp.de
>
http://www.sctp.de/mailman/listinfo/discussion
--
Michael.Tuexen AT micmac.franken.de
Archive powered by MHonArc 2.6.19+.