by mheydt
2.
July 2006 01:20
>
Workflow for delivering commands from the user to a peer in p2pSB.
Client side - User issues command (ie. ConnectToNetwork)
- Service host looks up the appropriate service. In this case, ConnectToNetworkService.
- Execute is triggered on the ConnectToServiceObject.
- AvailablePeers are retrieved, and ConnectToNetworkMessage delivered to each by the following process. Note that Redezvous Servers are considered peers in this list.
- The list of known transport types for each peer is identified from the PeerConnectionInfo class associated with the peer.
- ConnectToNetworkMessage is sent to each peer via that transport. Note that this is an asyncronous action and considered fire and forget.
- The message is places in the message store for correleation of connect messages.
Server Side - ConnectToNetworkMessage is received by a listener.
- Decrement TTL, and if 0 dispose of message.
- Message is routed to the message node. Message node "touches" the message.
- Message node routes it to the ConnectToNetworkService.
- Connect to network service acknowledges the message with a response back through the incoming message node.
- An entry in the peer list is made for this node.
- The message is forwarded to all peers on this servers peer list that are not already on the visited peers list.
Technorati Tags: p2pSB
946a5cba-8c00-4532-be22-4afbbc3d655f|0|.0
Tags:
p2pSB