The GraphChat sample Application demonstrates the use of a subset of the Peer-to-peer APIs centered around Graphing. It shows a multiparty chat application built using Graphing.
Platforms supported:
· Windows XP SP2
· Windows XP SP3
To Build:
· In a SDK command shell, navigate to the directory containing this sample and run "nmake"; or
· Launch the .sln file in Visual Studio .NET
To Run:
· Type graphchat.exe from ...\PeerToPeer\GraphChat\XP\XP32_DEBUG\
· Just use the UI! To get started, try executing the following scenarios:
1. Create a graph
a) Launch the GraphChat application.
b) Select “Graph" then "New Graph" from the menu to create a new graph.
c) Type in free text strings for GraphName and CreatorId. Select "Local" scope for the graph.
2. Connect to an existing graph
a) Launch several more instances of the GraphChat application, either on the same computer or on other computers connected to the same IPv6 subnet.
b) On these additional instances, Select “Graph" then ""Open Graph” from the menu. Enter in the GraphName used before and a unique MyPeerId for each instance.
c) Type in a message at a few of the nodes and see it flood to all of the other nodes.
3. Synchronizing with a graph after recovering connectivity.
a) Start with the graph established in the scenarios above, with at least a few different computers connected to the graph and a few nodes running on each computer.
b) Interrupt the network connectivity on one computer (for example, disconnect the network cable).
c) The graph is now split. Enter a few messages on various nodes. All the nodes running on the isolated computer share the messages between each other and all the nodes on the remaining connected computers also share their messages.
d) Reestablish the network connectivity of the isolated computer. After network connectivity is restored, the graph will reconnect to the mesh and synchronize the messages generated while in the split state.