Is there a PNRP cloud state change event? RRS feed

  • Question

  • I want to write a little tool for logging PNRP cloud state changes.

    Are there any events that I can listen to?

    or there are some other way to do it..


    Tuesday, April 10, 2007 12:30 AM


All replies

  • Hi Jin,


    Try posting this question on our Peer-Peer blog site (that includes PNRP) here:  - Note that PNRP is a totally separate Windows P2P technology and is not part of WCF or Peer channel - We (peer channel) come from the same team and build one of our name resolution solutions on top of PNRP- so although we might help with troubleshooting sometimes, our area of expertise is primarily Peer channel Smile.  


    In the meanwhile, one of our PNRP team members should be able to help you out here.


    Just out of curiosity, how are you using Peer channel?





    Tuesday, April 10, 2007 6:54 PM
  • Oh, ok.

    Yea, I wasn't able to find a good place to post those question.


    I'm using peer channel to discover peers(multi-cast) and then establish direct connection to send binary data/string(uni-cast).





    Tuesday, April 10, 2007 8:45 PM
  • Hi,

    Thanks for your interest in PNRP.

    There is a NSP interface to get the notification for cloud change.

    Please let me know if you need any more information.




    -- This posting is provided "AS IS" with no warranties, and confers no rights

    Tuesday, April 10, 2007 9:37 PM
  • Thanks for the reply.

    With your hint, I was able to find this link (Receiving Notifications by Using WSANSPIoctl)

    that's closest to what I want, but it's for win CE through.


    so just to confirm it, Is it what you have in mind?

    Tuesday, April 10, 2007 10:04 PM
  • That is correct. Please let me know if you have any issue using that API.




    Friday, April 27, 2007 12:54 AM
  • Thanks.


    Friday, April 27, 2007 1:00 AM


    I am using PeerChannel (NetPeerTCPBinding) on a local subnet and am able to discover other peers. When one of the peer goes offline, how do i know about it (i need to update my list of peers nearby). I am using offline/online events but that doesnt trigger unless it is alone. Please advice.




    Wednesday, August 13, 2008 6:34 PM
  • it depends how the peer "goes offline"...


    if it's voluntary, then you can do similiar things that you did for the join, where you send a leave message to the cloud,

    and when the other peers receive the message, remove the person who's leaving from your list.


    if it's involuntary, then it's a general networking issue.

    It doesn't matter what you do, what you have, once the peer's machine is down or the network is down,,,

    you just have to deal with it using normal ways, egs, timeouts, heartbeats, etc.



    Hope it helps


    Thursday, August 14, 2008 1:44 AM