]> gitweb.factorcode.org Git - factor.git/commitdiff
concurrency.distributed-docs: update an example code
authorAlexander Iljin <ajsoft@yandex.ru>
Tue, 19 Dec 2017 22:44:01 +0000 (23:44 +0100)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 16 Jan 2018 21:40:14 +0000 (13:40 -0800)
basis/concurrency/distributed/distributed-docs.factor

index aa0a8518e907a9edb0ed1ee8a5a54b74cf5604b7..c3053e3e1c44f9ae9fc5dae7b0d8d0b0cf5f71a2 100644 (file)
@@ -28,8 +28,8 @@ $nl
 "The second Factor instance, the one associated with port 9001, can send "
 "messages to the 'logger' thread by name:"
 { $code
-    "USING: io.sockets ; FROM: concurrency.messaging => send ;"
-    "\"hello\" \"127.0.0.1\" 9000 <inet4> \"logger\" <remote-thread> send"
+    "USING: io.servers concurrency.distributed ; FROM: concurrency.messaging => send ;"
+    "\"hello\" 9000 local-server \"logger\" <remote-thread> send"
 }
 "The " { $link send } " word is used to send messages to threads. If an "
 "instance of " { $link remote-thread } " is provided, then "