ZeroMQ

Posted By: Grat

ZeroMQ - 06/18/19 05:41

Hi,

I create interface for ZeroMQ. Status is early alpha

install:
a) download libzmq.dll and put in zorro folder
b) install zorroZmq.h into include
c) zmq_client.c into Strategy

[Linked Image]

test server in python:
Code
import time
import zmq

context = zmq.Context()
socket = context.socket(zmq.REP)
socket.bind("tcp://*:5555")

while True:
    #  Wait for next request from client
    message = socket.recv()
    print("Received request: %s" % message)

    #  Do some 'work'
    time.sleep(1)

    #  Send reply back to client
    socket.send(b"World")


Attached File
libzmq.zip  (15 downloads)
Attached File
zorroZmq.h  (21 downloads)
Attached File
zmq_client.c  (28 downloads)
Attached File
Screenshot_96.png  (1413 downloads)
Posted By: ricky_k

Re: ZeroMQ - 09/08/19 08:36

Grat,

Nice work with the ZMQ interface.

Wondering what kinds of applications you'd use this for (or already have) besides a custom trading API?

ricky
© 2019 lite-C Forums