- A PEER_INITIATED_CONNECT event is raised by the network service for one of the peers that initiated the connection.
- On recving a PEER_INITIATED_CONNECT, a PEERHELLO message is sent to the other peer.
- On recving a PEERHELLO message, a PEER_CONNECT event is raised. A PEERHELLOOK is sent back.
- On recving a PEERHELLOOK message, a PEER_CONNECT event is raised.
- Both peers are now connected
- On recving a PEER_CONNECT event,
- if the Peer is a trusted peer, a PEERINFO message with our peer details is exchanged beteen peers using some GROUP authorization.
- for all groups this peer is a member of a SYNCGROUPLIST message is sent
- any pending group invitations are sent
- On recving a SYNCGROUPLIST message,
- if the Peer is part of the group, a APPLYGROUPLIST message is sent with group delta records.
- if the Peer is not part of the group, a UNKNOWNGROUP message is sent
- On recving a UNKOWNGROUP message
- a peer cleans up its associated of the peer with that group
- On recving a APPLYGROUPLIST message
- a peer applies the detla list of records to the groups to become up to date
- for new peers found in the group, it will connect to them
Generated on Wed Oct 12 2011 21:46:52. © CodeLathe LLC 2007-2011. All Rights Reserved.