Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tammo Jan Dijkema
zonnedemo
Commits
2bc1cde2
Unverified
Commit
2bc1cde2
authored
Jun 06, 2021
by
Tammo Jan Dijkema
Browse files
Make zmq send to all ports
parent
e7bdf094
Changes
1
Hide whitespace changes
Inline
Side-by-side
zmqsend.py
View file @
2bc1cde2
...
...
@@ -13,7 +13,7 @@ else:
ctx
=
zmq
.
Context
()
sender
=
ctx
.
socket
(
zmq
.
PUSH
)
sender
.
bind
(
"tcp://
127
.0.0.
1
:"
+
port
)
sender
.
bind
(
"tcp://
0
.0.0.
0
:"
+
port
)
while
True
:
time
.
sleep
(
0.5
)
sender
.
send
(
np
.
array
(
3000
+
random
()
*
500
,
dtype
=
"float32"
))
Write
Preview
Supports
Markdown
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