Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
distributed oscilloscope
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
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Projects
distributed oscilloscope
Commits
9a0501a8
Commit
9a0501a8
authored
Jun 23, 2019
by
Milosz Malczak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adc: removed unused file
parent
b61e008e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
publisher.py
software/fec/publisher.py
+0
-20
No files found.
software/fec/publisher.py
deleted
100644 → 0
View file @
b61e008e
import
zmq
import
pickle
import
logging
logger
=
logging
.
getLogger
(
__name__
)
"""TODO should I add some logging here or some error handling?"""
class
Publisher
():
def
__init__
(
self
,
ip
,
port
):
context
=
zmq
.
Context
()
self
.
socket
=
context
.
socket
(
zmq
.
DEALER
)
addr
=
str
(
ip
)
+
':'
+
str
(
port
)
self
.
socket
.
connect
(
"tcp://"
+
addr
)
def
send_message
(
self
,
data
):
msg
=
pickle
.
dumps
(
data
)
self
.
socket
.
send
(
msg
)
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