Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
b4591202
Commit
b4591202
authored
Dec 17, 2013
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #791 from moteus/patch-1
Update doc for zmq_proxy_steerable [ci skip]
parents
5401c352
b7a2248e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
zmq_proxy_steerable.txt
doc/zmq_proxy_steerable.txt
+7
-7
No files found.
doc/zmq_proxy_steerable.txt
View file @
b4591202
...
...
@@ -3,7 +3,7 @@ zmq_proxy_steerable(3)
NAME
----
zmq_proxy_steerable - start built-in 0MQ proxy with
STOP
/RESUME/TERMINATE
zmq_proxy_steerable - start built-in 0MQ proxy with
PAUSE
/RESUME/TERMINATE
control flow
...
...
@@ -21,8 +21,8 @@ for the general description and usage. We describe here only the additional
control flow provided by the socket passed as the fourth argument "control".
If the control socket is not NULL, the proxy supports control flow. If
'
SUSPEND\0
' is received on this socket, the proxy suspends its activities. If
'RESUME
\0' is received, it goes on. If 'TERMINATE\0
' is received, it terminates
'
PAUSE
' is received on this socket, the proxy suspends its activities. If
'RESUME
' is received, it goes on. If 'TERMINATE
' is received, it terminates
smoothly. At start, the proxy runs normally as if zmq_proxy was used.
If the control socket is NULL, the function behave exactly as if zmq_proxy
...
...
@@ -69,12 +69,12 @@ zmq_proxy_steerable (frontend, backend, NULL, control);
void *control = zmq_socket (context, ZMQ_PUB);
assert (control);
assert (zmq_bind (control, "tcp://*:5557") == 0);
//
stop
the proxy
assert (zmq_send (control, "
STOP
", 5, 0) == 0);
//
pause
the proxy
assert (zmq_send (control, "
PAUSE
", 5, 0) == 0);
// resume the proxy
assert (zmq_send (control, "RESUME",
7
, 0) == 0);
assert (zmq_send (control, "RESUME",
6
, 0) == 0);
// terminate the proxy
assert (zmq_send (control, "TERMINATE",
10
, 0) == 0);
assert (zmq_send (control, "TERMINATE",
9
, 0) == 0);
---
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment