mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-21 02:57:38 +03:00
Trivial receiver that just spams to stdout.
This commit is contained in:
parent
15c2141493
commit
81f481755e
17
src/receiver.py
Normal file
17
src/receiver.py
Normal file
@ -0,0 +1,17 @@
|
||||
import zmq.green as zmq
|
||||
import sys
|
||||
|
||||
|
||||
def main():
|
||||
context = zmq.Context()
|
||||
subscriber = context.socket(zmq.SUB)
|
||||
|
||||
subscriber.setsockopt(zmq.SUBSCRIBE, "")
|
||||
subscriber.connect('tcp://199.115.222.234:9500')
|
||||
|
||||
while True:
|
||||
print subscriber.recv()
|
||||
sys.stdout.flush()
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
Loading…
x
Reference in New Issue
Block a user