File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -108,15 +108,15 @@ your server to act as a kind of worker, and connect to a hub or queue which
108
108
will dispatch requests. You can achieve this by swapping "--bind" and
109
109
"--connect"::
110
110
111
- $ zerorpc --bind tcp://*:1234 localtime
111
+ $ zerorpc --bind tcp://*:1234 strftime %Y/%m/%d
112
112
113
- We now have "something" wanting to call the "localtime " function, and waiting
113
+ We now have "something" wanting to call the "strftime " function, and waiting
114
114
for a worker to connect to it. Let's start the worker::
115
115
116
- $ zerorpc --server tcp://* :1234 time
116
+ $ zerorpc --server tcp://127.0.0.1 :1234 time
117
117
118
118
The worker will connect to the listening client and ask him "what should I
119
- do?"; the client will send the "localtime " function call; the worker will
119
+ do?"; the client will send the "strftime " function call; the worker will
120
120
execute it and return the result. The first program will display the
121
121
local time and exit. The worker will remain running.
122
122
You can’t perform that action at this time.
0 commit comments