mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-20 10:37:38 +03:00
These were just prototypes; no need to keep them around.
This commit is contained in:
parent
639703f8c9
commit
5d3551d705
@ -1,17 +0,0 @@
|
||||
import zmq.green as zmq
|
||||
import sys
|
||||
|
||||
|
||||
def main():
|
||||
context = zmq.Context()
|
||||
subscriber = context.socket(zmq.SUB)
|
||||
|
||||
subscriber.setsockopt(zmq.SUBSCRIBE, "")
|
||||
subscriber.connect('tcp://eddn-gateway.elite-markets.net:9500')
|
||||
|
||||
while True:
|
||||
print subscriber.recv()
|
||||
sys.stdout.flush()
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
@ -1,15 +0,0 @@
|
||||
import zmq.green as zmq
|
||||
import time
|
||||
|
||||
|
||||
def main():
|
||||
context = zmq.Context()
|
||||
socket = context.socket(zmq.PUB)
|
||||
socket.bind("tcp://*:9500")
|
||||
|
||||
while True:
|
||||
socket.send('{"PING" : ' + str(time.time()) + '}')
|
||||
time.sleep(1)
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
Loading…
x
Reference in New Issue
Block a user