2025-11-28 00:35:46 +09:00

225 lines
8.0 KiB
HTML
Raw Blame History

<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=Generator content="Microsoft Word 12 (filtered)">
<title>GraphChat (XP) Sample</title>
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Cambria;
panose-1:2 4 5 3 5 4 6 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
h1
{mso-style-link:"Heading 1 Char";
margin-right:0in;
margin-left:0in;
font-size:24.0pt;
font-family:"Times New Roman","serif";
font-weight:bold;}
h3
{mso-style-link:"Heading 3 Char";
margin-right:0in;
margin-left:0in;
font-size:13.5pt;
font-family:"Times New Roman","serif";
font-weight:bold;}
p
{margin-right:0in;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.Heading1Char
{mso-style-name:"Heading 1 Char";
mso-style-link:"Heading 1";
font-family:"Cambria","serif";
color:#365F91;
font-weight:bold;}
span.Heading3Char
{mso-style-name:"Heading 3 Char";
mso-style-link:"Heading 3";
font-family:"Cambria","serif";
color:#4F81BD;
font-weight:bold;}
p.msolistparagraphcxspfirst, li.msolistparagraphcxspfirst, div.msolistparagraphcxspfirst
{mso-style-name:msolistparagraphcxspfirst;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
p.msolistparagraphcxspmiddle, li.msolistparagraphcxspmiddle, div.msolistparagraphcxspmiddle
{mso-style-name:msolistparagraphcxspmiddle;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
p.msolistparagraphcxsplast, li.msolistparagraphcxsplast, div.msolistparagraphcxsplast
{mso-style-name:msolistparagraphcxsplast;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
p.msochpdefault, li.msochpdefault, div.msochpdefault
{mso-style-name:msochpdefault;
margin-right:0in;
margin-left:0in;
font-size:10.0pt;
font-family:"Times New Roman","serif";}
p.Bullets, li.Bullets, div.Bullets
{mso-style-name:Bullets;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.75in;
margin-bottom:.0001pt;
text-indent:-.25in;
font-size:12.0pt;
font-family:"Arial","sans-serif";}
p.LetteredList, li.LetteredList, div.LetteredList
{mso-style-name:"Lettered List";
margin-right:0in;
margin-left:.75in;
text-indent:-.25in;
font-size:12.0pt;
font-family:"Arial","sans-serif";}
.MsoChpDefault
{font-size:10.0pt;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body bgcolor=white lang=EN-US>
<div class=Section1>
<h1><span style='font-family:"Arial","sans-serif"'>GraphChat (XP) Sample</span></h1>
<p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>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.</span></p>
<p class=MsoNormal>&nbsp;</p>
<p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>Platforms supported:</p>
<p class=Bullets><span style='font-family:Symbol'><EFBFBD></span><span
style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Windows XP SP2</p>
<p class=Bullets><span style='font-family:Symbol'><EFBFBD></span><span
style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Windows XP SP3</p>
<p class=MsoNormal>&nbsp;</p>
<p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>To Build: </span></p>
<p class=Bullets><span style='font-family:Symbol'><EFBFBD></span><span
style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>In a SDK command shell, navigate to the directory containing this sample
and run &quot;nmake&quot;; or</p>
<p class=Bullets><span style='font-family:Symbol'><EFBFBD></span><span
style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Launch the .sln file in Visual Studio .NET </p>
<p class=MsoNormal>&nbsp;</p>
<p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>To Run: </span></p>
<p class=Bullets><span style='font-family:Symbol'><EFBFBD></span><span
style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Type graphchat.exe from ...\PeerToPeer\GraphChat\XP\XP32_DEBUG\</p>
<p class=Bullets><span style='font-family:Symbol'><EFBFBD></span><span
style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>Just use the UI! To get started, try executing the following scenarios:</p>
<p><b><span style='font-family:"Arial","sans-serif"'>1. Create a graph</span></b></p>
<p class=LetteredList>a)<span style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;
</span>Launch the GraphChat application.</p>
<p class=LetteredList>b)<span style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;
</span>Select <20>Graph" then "New Graph" from the menu to create a new graph.</p>
<p class=LetteredList>c)<span style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;
</span>Type in free text strings for GraphName and CreatorId.<2E> Select "Local" scope
for the graph.</p>
<p><b><span style='font-family:"Arial","sans-serif"'>2. Connect to an existing
graph</span></b></p>
<p class=LetteredList>a)<span style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;
</span>Launch several more instances of the GraphChat application, either on the
same computer or on other computers connected to the same IPv6 subnet.</p>
<p class=LetteredList>b)<span style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;
</span>On these additional instances, Select <20>Graph" then ""Open Graph<70> from the menu.<2E>
Enter in the GraphName used before and a unique MyPeerId for each instance.</p>
<p class=LetteredList>c)<span style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;
</span>Type in a message at a few of the nodes and see it flood to all of the
other nodes.</p>
<p><b><span style='font-family:"Arial","sans-serif"'>3. Synchronizing with a
graph after recovering connectivity.</span></b></p>
<p class=LetteredList>a)<span style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;
</span>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.</p>
<p class=LetteredList>b)<span style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;
</span>Interrupt the network connectivity on one computer (for example, disconnect the network cable).</p>
<p class=LetteredList>c)<span style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;
</span>The graph is now split.<2E> Enter a few messages on various nodes.<2E> 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.</p>
<p class=LetteredList>d)<span style='font-size:7.0pt;font-family:"Times New Roman","serif"'>&nbsp;&nbsp;&nbsp;
</span>Reestablish the network connectivity of the isolated computer.<2E> After network connectivity is restored,
the graph will reconnect to the mesh and synchronize the
messages generated while in the split state.</p>
</div>
</body>
</html>