Gamestudio Links
Zorro Links
Newest Posts
Converting fbx file to mdl7
by Dark_Light. 09/22/19 22:53
Any chance of PBR materials with A8?
by Dooley. 09/22/19 21:43
Levels, textures, etc for A8
by Dooley. 09/22/19 03:57
Can MED export to FBX?
by Rondidon. 09/20/19 10:17
Script, Start Trading Immediately
by OptimusPrime. 09/19/19 13:57
What are you working on?
by 3run. 09/19/19 09:42
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
5 registered members (Dark_Light, 3run, davidc, kvm, 1 invisible), 640 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Dark_Light, oxygenjoe, web20tpo, Juanjo, Fred7
18290 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
ZeroMQ #477347
06/18/19 05:41
06/18/19 05:41
Joined: May 2015
Posts: 163
Czech Republic
Grat Offline OP
Member
Grat  Offline OP
Member

Joined: May 2015
Posts: 163
Czech Republic
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 Files
libzmq.zip (11 downloads)
zorroZmq.h (19 downloads)
zmq_client.c (24 downloads)
Screenshot_96.png (1145 downloads)
Last edited by Grat; 06/18/19 05:44.
Re: ZeroMQ [Re: Grat] #478107
09/08/19 08:36
09/08/19 08:36
Joined: Nov 2015
Posts: 8
R
ricky_k Offline
Newbie
ricky_k  Offline
Newbie
R

Joined: Nov 2015
Posts: 8
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


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1