Blog Posts from August 2003 (page 1 of 4)
My contact on the P2P team just gave me two more important links for the construction of IPv6 based P2P apps. The first is IP Helper, a library included with XP that “enables the retrieval and modification of network configuration settings for the local computer”. I had never seen that library before, but it’s full of useful methods like GetAdaptersInfo and GetAdaptersAddresses. I want to be able to retrieve the IPv6 address of my NICs directly, so this is the library I need. Anyone out there wrapped it in managed code yet? I was hoping to do this part with WMI, but the IPv6 info doesn’t seem to be exposed via WMI.
The other relevant link is the IPv6 Internet Connection Firewall SDK, which “contains all the software required to configure the IPv6 Internet Connection Firewall”. I assume that means that I can open relevant ports to enable P2P communication. As I wrote yesterday, the issue I’m having with GraphChat is likely related to the IPv6 Firewall configuration. I’d like to include in my P2P managed library the ability to manage the IPv6 Firewall.
Someone from the P2P team internally saw my blog and set me a list of commands to execute and send back to him to help troubleshoot my problem. One of those commands was “net start pnrpsvc”. Aha! I hadn’t realized that the WinXP Adv. Networking Pack installed any services. Turns out it installs four, including the “Peer Name Resolution Protocol” service (i.e. pnrpsvc). What’s odd is that now that I’ve started it manually once, it seems to autostart on demand now. I can resolve addresses, as well as ping the seed server. GraphChat doesn’t work yet, but I think that’s because the IPv6 firewall only has two ports open by default – PNRP (UDP 3540) and Grouping (TCP 3587). The GraphChat sample uses a dynamically chosen port, which would be blocked.
So now that I’m back on track, I’ve got the PNRP namespace provider API wrapped in Managed C++. I can register, unregister, resolve and enumerate PNRP clouds from managed code. I’ve also got a first pass of the Identity Manager API and a skeleton of the Graphing API done. I’ll post code when I have a managed GraphChat sample working.
This is a pretty elegant solution. Especially since his solution can be enabled on a single page as needed. My solution processes every page output from the site. The primary benefit of my solution is that it can add the additional code directly into the __doPostBack function, which means I don’t have to replicate the code to get the “theform” instance. Also, since it automatically fixes up every page in the web app, I don’t have to remember to turn it on in every page.
If you ask Phil nicely, he might send you his code. If we all ask him nicely, maybe he’ll post it.