[Tinyos-2-commits] CVS: tinyos-2.x/tos/lib/net/ctp CtpCongestion.nc, NONE, 1.1.2.1

Rodrigo Fonseca rfonseca76 at users.sourceforge.net
Fri Oct 27 11:05:51 PDT 2006


Update of /cvsroot/tinyos/tinyos-2.x/tos/lib/net/ctp
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv31200

Added Files:
      Tag: tinyos-2_0_devel-BRANCH
	CtpCongestion.nc 
Log Message:
Added interface for congestion notification


--- NEW FILE: CtpCongestion.nc ---
interface CtpCongestion {

    /* Returns the current state of congestion from the provider. Ctp may be
     * congested because its internal queue is congested or because the receive
     * client called isCongested with TRUE. */

    command bool isCongested();

    /* Idempotent call to let the provider know whether a client is congested.
     * If not previously congested, Ctp will take measures to slow down.
     * Ctp has an internal congested condition as well. The result of isCongested
     * is a logical OR with the parameter set here and the internal congestion.
     */
    command void setClientCongested(bool congested);
}



More information about the Tinyos-2-commits mailing list