Research Article
Design and Implementation of a VoIP Broadcasting Service over Embedded Systems in a Heterogeneous Network Environment
Algorithm 1
Shortest transmission time node first (STTNF) pseudocode.
(1) procedure STTNF | (2) input: | (3) // : the number of receiver nodes | (4) // tt[]: the probed transmission time array for receiver nodes | (5) // sq[]: the sending sequence array for receiver nodes | (6) | (7) for to | (8) = tt; | (9) sq = ; | (10) end for | (11) | (12) for = 0 to | (13) for = 0 to | (14) if > | (15) swap(); | (16) swap(sq, sq); | (17) end if | (18) end for | (19) end for | (20) | (21) for = 0 to | (22) transmit the voice packet to the sq th receiver node; | (23) end for | (24) end procedure |
|