Research Article

An Efficient Framework for Large Scale Multimedia Content Distribution in P2P Network: I2NC

Pseudocode 1

Pseudocode for neighbor selection.
Get the random list of Peers from tracker
; ( is for counting the number of neighbors in )
While ( != ) do
   Find the set of neighbors who has longest IP prefix with that peer’s IP address
   Mark
   Add into
    holds the list of neighbors temporarily for a demand-based search
   Add to Neighbors
   Subtract one from
While ( is not empty) do
   Delete from
   For each unmarked neighbor of do
    If the available coded or uncoded packet between and is not same then
      Mark
      Add to Neighbors
    End if
   End for
End while
Return Set of Neighbors