Command flow in p2pSB

by mheydt 2. July 2006 01:20 >
Workflow for delivering commands from the user to a peer in p2pSB.

Client side
  1. User issues command (ie. ConnectToNetwork)
  2. Service host looks up the appropriate service.  In this case, ConnectToNetworkService.
  3. Execute is triggered on the ConnectToServiceObject.
  4. AvailablePeers are retrieved, and ConnectToNetworkMessage delivered to each by the following process.  Note that Redezvous Servers are considered peers in this list.
  5. The list of known transport types for each peer is identified from the PeerConnectionInfo class associated with the peer.
  6. ConnectToNetworkMessage is sent to each peer via that transport.  Note that this is an asyncronous action and considered fire and forget.
  7. The message is places in the message store for correleation of connect messages.
Server Side
  1. ConnectToNetworkMessage is received by a listener.
  2. Decrement TTL, and if 0 dispose of message.
  3. Message is routed to the message node.  Message node "touches" the message.
  4. Message node routes it to the ConnectToNetworkService.
  5. Connect to network service acknowledges the message with a response back through the incoming message node.
  6. An entry in the peer list is made for this node.
  7. The message is forwarded to all peers on this servers peer list that are not already on the visited peers list.

Technorati Tags:

Tags:

p2pSB

blog comments powered by Disqus

about the author

I'm a .NET, XAML, and iOS polyglot that loves playing with new things and making cool and innovative stuff.  I am also a Mac junkie.

I am Principal Technologist for SunGard Global Services in NYC, in their Advanced Technologies practice, and I work extensively with SunGard's energy and financial customers.

Note the the posting on this blog are my own and do not represent the position, strategies or opinions of SGS.

twitter

I can't stop thinking big!
Sunday 1:08AM via WindowsLive
Just watched Moneyball. That's my pick for best movie this year.
Saturday 3:51PM via WindowsLive
@vincebelpiede: Report: Skype For Windows Phone Beta Imminent http://t.co/KYNjgg1L#mhtnd
Wednesday 8:39AM via Twitter for Mac
@mashable: Kinect Fusion Will Turn Gaming (and More) Into a 3D Fun House - http://t.co/Ihrq2fY2#mhtnd
Wednesday 8:39AM via Twitter for Mac
New Kinect SDK: http://t.co/57MvA5L5 #mhtnd
Wednesday 8:39AM via Twitter for Mac
Follow me on Twitter

recent comments

None

month list