C
Size: a a a
C
C
C
One event is if a peer x gets to know a new peer y. Then peer x checks all its stored data for which peer x is responsible for. If peer y is the new responsible for this stored data, the content will be handed over to peer y and peer y will be the new responsible peer. If peer y leaves the system that was responsible for content and peer x becomes the new responsible peer, peer x checks if there are enough replicas for this content. If not enough replicas are stored on peers, peer x starts to replicate the content.
The second event is triggered by a timer. Peer x checks periodically all stored data for enough replicas in the network. If not enough replicas are stored on peers, peer x starts to replicate the content.
C
MM
MM
C
C
One event is if a peer x gets to know a new peer y. Then peer x checks all its stored data for which peer x is responsible for. If peer y is the new responsible for this stored data, the content will be handed over to peer y and peer y will be the new responsible peer. If peer y leaves the system that was responsible for content and peer x becomes the new responsible peer, peer x checks if there are enough replicas for this content. If not enough replicas are stored on peers, peer x starts to replicate the content.
The second event is triggered by a timer. Peer x checks periodically all stored data for enough replicas in the network. If not enough replicas are stored on peers, peer x starts to replicate the content.
C
C
C
C
MM
MM
C
SB
go bind
p2mobile.Start()
, которая должна вызываться асинхронно (видимо в каком-то бекграунде) - и которая записывает нужный мне интерфейс в глобальную структуру в го.GetStream()
очевидно должна вызываться некоторое время спустя запуска Start
, и давать мне возможность получать искомую переменную стрима, записанную в ходе работы Start
PG
PG
PG