On Thu, Aug 18, 2011 at 9:02 PM, Jabeer Ahmed <jabeer.ahmed.pdx@gmail.com> wrote:
Hi David, Thanks a lot. So is it okay for me to have a loop 

1. set_transmission(ON)
2.dequeue
3.enqueue -> go back to 1. until stop transmission

4. set_transmission(OFF).

I guess my question is do I have to follow up set_transmission(ON) with a set_transmission(OFF) in a pair everytime, or can I set_transmission(ON) enter a loop where i dequeue and enqueue repeatedly and finally set_transmission(OFF)

You should do the latter:  set_transmission(ON), enter a loop where you dequeue and enqueue repeatedly, and then set_transmission(OFF).

-David