11.07.2015 Views

y - Net Developer

y - Net Developer

y - Net Developer

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 12 ■ DEVELOPING PEER-TO-PEER APPLICATIONS WITH WCF 395ramrameshreddy.blog.comTable 12-2. Cloud State ValuesValueVirtualSynchronizingActiveDeadActiveDisabledNo <strong>Net</strong>AloneDescriptionThe cloud is not yet initialized.The cloud is in the process of being initialized but is not active yet.The cloud is active.The cloud has lost its connection to the network but was initialized.The cloud is active.Listing Peers in a CloudThe cloud is disabled in the registry.The cloud has lost its connection to the network but was active.The cloud is in stand-alone mode.To see the locally registered nodes in a cloud, use the command show names in netsh. InListing 12-14, you can have two peers identified by P2P Name connected to the cloud. Note theexact list of peers you see will of course be different from the ones shown here. If you have theQuickReturnTraderChat application running from earlier in the chapter, then you should seethat.Listing 12-14. Peer ListingP2P Name:Identity:Comment:PNRP ID:State:IP Addresses:0.quickreturntraderchat2460f44f457b670116f55709f3e6324dd12ad70e.PnrpProtocolV2a?????????cf284a913c76d8289f16c4fefbe18b7a.5bcca4c6a1090f379d15b0f12fc89b08OK192.168.1.73:11989 tcp[2001:0000:4136:e37a:2847:1735:a83d:dc55]:11989 tcpP2P Name: 0.78873591048Identity: 2460f44f457b670116f55709f3e6324dd12ad70e.PnrpProtocolV2Comment: Local Machine IdPNRP ID: ad1d55aa343d35df9d118343e3c3de09.7700660055004400f956ced74b6beb3cState:OKThe following list defines each of the columns in the previous data:ramrameshreddyramrameshreddyP2P Name: This is the name of the peer connected to the cloud. The first peer in Listing 12-14,called 0.quickreturntraderchat, is the QuickReturnTraderChat application discussed earlierin the chapter.Identity: As the name suggests, this represents the identities. Note that the identities ofboth peers are the same. This is because these peers are unsecure and the default identityis used for them.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!