A method of allocating at least one service by a first peer (E) to a
second peer (D), the peers being linked by means of a computer
communication network, the first and second peers belonging respectively
to a first and second group of peers adapted to share data, comprises the
following steps: evaluating (E63) a distance (d0) between the first
peer (E) and the second peer (D); and selecting (E65) a service allocated
by the first peer (E) according to the value (d0) of the distance.