These were just prototypes; no need to keep them around.

This commit is contained in:
James Muscat 2015-04-04 01:10:45 +01:00
parent 639703f8c9
commit 5d3551d705
2 changed files with 0 additions and 32 deletions

View File

@ -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()

View File

@ -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()