git.iko.soy/distributed-process
on master help sign in
The third argument to both the master and client must be the filename of the sourceAddrFilePath file in order for this example to run.
commit54481b2c30cd6eba27166e371158e9bf0573236e authorAdam Foltzer <acfoltzer@gmail.com> dateThu 12 Jan 2012, 10:53 (15 years ago) parent9c55ac5
1 file changed+3−3
examples/DemoTCP.hs+3−3
examples/DemoTCP.hs+3−3
@@ -17,12 +17,12 @@ type ChanId = Int
1717-- the transport layer. After compiling, the following will initialize a new
1818-- master that waits for two clients to connect on the local machine:
1919--
20−-- ./DemoTCP 127.0.0.1 8080 2
20+-- ./DemoTCP 127.0.0.1 8080 sourceAddrFile 2
2121--
2222-- Following this, two slaves should be created that will connect to the master:
2323--
24−-- ./DemoTCP 127.0.0.1 8081
25−-- ./DemoTCP 127.0.0.1 8082
24+-- ./DemoTCP 127.0.0.1 8081 sourceAddrFile
25+-- ./DemoTCP 127.0.0.1 8082 sourceAddrFile
2626--
2727-- Once the connection is established, the slaves will provide the master
2828-- with their SourceAddr. The master then decodes this, and sends a message