Re: [zeromq-dev] How to get transactions from bitcoind?

2017-01-16 Thread Andy
��Ӝ��x�� � rawtxUy�u F o��v��Ӝ��x�� � whereas hashtx,rawtx are correct but data no. 2.zmq_getsockopt(socket, ZMQ_RCVMORE, optbuf, ); optlen always = 0 3.For Windows zmq_recv is blocked, moreover, Python program is also blocked. 2017-01-13 16:48 GMT+01:00 Andy <borucki.andr

Re: [zeromq-dev] How to get transactions from bitcoind?

2017-01-16 Thread Andy
Hi, problem (for Linux) is solved: bitcoind messages have 3 parts: first part is text, second binary data, last - rest. https://gist.github.com/borneq/dc2b43bcdf0878fc44930e3e280bdb54 works fine for Linux and gets correct hashes. But still problem for Windows: receive is blocking, moreover, Python

[zeromq-dev] How to get transactions from bitcoind?

2017-01-12 Thread Andy
Python version is here: https://github.com/bitcoin/bitcoin/blob/master/contrib/zmq/zmq_sub.py I try to write C++ version using zeroMQ and wrapper https://github.com/alanw/zmqcpp #include #include #include #include #include "zmq.hpp" int main(int argc, char **argv) { zmq::context_t

Re: [zeromq-dev] How to get transactions from bitcoind?

2017-01-13 Thread Andy
I write gist: https://gist.github.com/borneq/b72ecf68ea489d0a457041af2fd12a60 but still do nothing after bitcoind -zmqpubhashtx=tcp://127.0.0.1:28332 -zmqpubrawtx=tcp:// 127.0.0.1:28332 & whereas python zmq_sub.py does ___ zeromq-dev mailing list

[zeromq-dev] I need ZMQ server working like DLL

2017-08-30 Thread Andy
I have two process. ZMQ server which is database client. Waits for requests and read/write to database. ZMQ client works synchronously - give request and short wait for response. What example? On github I saw many repositories for C++ ZeroMQ: azmq azmq1-0 cppzmq libzmq zeromq4-1 zmqpp What

[zeromq-dev] ann: guile-zeromq

2011-04-25 Thread Andy Wingo
Hey hackers, I posted an initial Guile binding for zeromq here: http://www.zeromq.org/bindings:guile-binding I haven't hammered it too hard, but it did work for a simple pub/sub test. Please Cc me in replies, as I am not subscribed. Regards, Andy -- http://wingolog.org

[zeromq-dev] TCL client

2012-11-04 Thread Andy Billington
anyone ever tried to get TCL zeromq working on Cisco IOS? andy ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev

[zeromq-dev] Windows 7 problem - error in zmq_msg_init_size: Not enough space

2013-07-02 Thread Andy Gotz
as efficiently as possible over a 10 GBps link. Thanks in advance Andy ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Re: [zeromq-dev] Windows 7 problem - error in zmq_msg_init_size: Not enough space

2013-07-02 Thread Andy Gotz
Hi Pieter, OK that makes sense. I will change lower the HWM accordingly. Thanks Andy On 02/07/2013 14:58, Pieter Hintjens wrote: Hi Andy, The throughput program (perf/remote_thr.cpp) uses a PUSH socket with default high-water mark, meaning they'll queue 1,000 messages before blocking

Re: [zeromq-dev] Using the full bandwidth of a 10 GBps link on Windows 7

2013-07-03 Thread Andy Gotz
(16 core machines with GBs of memory). I am hoping someone on the zeromq mailing list has managed to use all the bandwidth with ZMQ on Windows with 10 Gbits/s and can tell me how they did it ... Best regards Andy On 07/03/2013 09:42 AM, Edwin van den Oetelaar wrote: Hello Andy, My guess

Re: [zeromq-dev] Using the full bandwidth of a 10 GBps link on Windows 7

2013-07-08 Thread Andy Gotz
to you if we have more news and (hopefully) a positive answer. Best regards Andy On 07/03/2013 08:41 PM, A. Mark wrote: Hi! Could you provide the command line you used for local_thr/remote_thr? Also the screen shot of task manager network and CPU would be useful during bechmarks? I have ran

[zeromq-dev] Storm rejecting ZeroMQ

2013-08-26 Thread Andy Pook
comment from Nathan Marz in a presentation called Lessons Learned Building Storm http://www.infoq.com/presentations/storm-lessons 42:50 Q: “What do you think about the ZeroMQ library?” A: pause… It saved a lot of time initially. Then we ran into a lot of problems with it. A lot of

Re: [zeromq-dev] zeromq-dev Digest, Vol 19, Issue 4

2017-10-04 Thread Andy Briggs
t; > > > binding to: " << config.connection_url << endl; > > > > exit(1); > > > > ???} > > > > ???msleep (SETTLE_TIME); > > > > > > > > ???srand(time(0)); > > > > ???int zip; &g

[zeromq-dev] Zerorpc, zeromq and electron compatibility issue

2019-12-18 Thread Andy Bulka
Zerorpc for nodejs has been incompatible with later versions of electron/node/zeromq for a quite a while now - it seems it needs to be modified to work with the latest zeromq. There is a ticket open but no progress. Just thought I'd bring it to

[zeromq-dev] inproc: If first connect occurs before bind, then retries don't seem to succeed...

2012-12-20 Thread Andy Ballingall TF
manages to connect. Thanks! Andy //START OF bindwait.c // This test creates a logger thread which listens via an inproc 'PULL' socket for // messages to output, and then creates a worker

Re: [zeromq-dev] inproc: If first connect occurs before bind, then retries don't seem to succeed...

2012-12-21 Thread Andy Ballingall TF
-loop, but I can't seem to get the connect() to work at all if it failed once, but I'm quite new to zmq and might be making some basic error. Thanks, Andy -Pieter ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman

Re: [zeromq-dev] Controlling thread affinity in a DEALER socket

2012-12-21 Thread Andy Ballingall TF
around the zmq message envelope manipulations that are going on, but well worth spending the time to get your head around it. I've used this as the basis of a load-balanced mechanism with a load of back-end workers and it works very well. Andy Peter -Original Message- From: zeromq-dev

[zeromq-dev] zloop_timer() does not fire if added after zloop_start()...

2012-12-27 Thread Andy Ballingall TF
dynamically once zloop_start() has begin and be sure that each timer first when required? This slight issue aside, the zloop reactor is a lovely thing. I'm currently using it in 2 places and it saves many lines of code. Andy -- Andy Ballingall Senior Software Engineer The Foundry 6th Floor

Re: [zeromq-dev] inproc: If first connect occurs before bind, then retries don't seem to succeed...

2012-12-27 Thread Andy Ballingall TF
ready before starting the second one. That's the approach I'll have to take as my use case is there being N children, where child 1 sets up the bind() and children 2 to N connect() to child 1. Thanks for your help, Andy -Pieter On Fri, Dec 21, 2012 at 12:28 PM, Andy Ballingall TF balling

Re: [zeromq-dev] zloop_timer() does not fire if added after zloop_start()...

2012-12-27 Thread Andy Ballingall TF
attached to the reactor for processing messages. See my reply to Pieter for more details. Andy -- Andy Ballingall Senior Software Engineer The Foundry 6th Floor, The Communications Building, 48, Leicester Square, London, WC2H 7LT, UK Tel: +44 (0)20 7968 6828 - Fax: +44 (0)20 7930 8906 Web: http

Re: [zeromq-dev] zloop_timer() does not fire if added after zloop_start()...

2012-12-27 Thread Andy Ballingall TF
inadvertently have been calling something from another thread, but I'm pretty sure I'm not. However, let me see if I can create a test program which exhibits this behaviour... Andy I've got a client and server. 1) client sets up a reactor with no timers. 2) client says hello to the server and a handler

Re: [zeromq-dev] zloop_timer() does not fire if added after zloop_start()...

2012-12-27 Thread Andy Ballingall TF
Hi Pieter, On 27 December 2012 13:55, Pieter Hintjens p...@imatix.com wrote: On Thu, Dec 27, 2012 at 2:53 PM, Andy Ballingall TF balling...@thefoundry.co.uk wrote: Note how my timer registration succeeds, but the polling seems to ignore it? Then it's because the tickless timer is being

Re: [zeromq-dev] Fwd: Beginner question with respect to zmq_proxy

2012-12-27 Thread Andy Ballingall TF
___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http://lists.zeromq.org/mailman/listinfo/zeromq-dev -- Andy Ballingall Senior Software Engineer The Foundry 6th Floor, The Communications Building, 48, Leicester Square, London, WC2H 7LT, UK Tel: +44 (0)20 7968 6828 - Fax

Re: [zeromq-dev] zloop_timer() does not fire if added after zloop_start()...

2012-12-27 Thread Andy Ballingall TF
On 27 December 2012 16:22, Pieter Hintjens p...@imatix.com wrote: Andy, You can trace this quite simply; print the tickless timer value before each zmq_poll in zloop. It should change when you add your new timer. Indeed, but even if the value is initially correct, the problem

Re: [zeromq-dev] Fwd: Beginner question with respect to zmq_proxy

2012-12-27 Thread Andy Ballingall TF
! If you're using iptables, try: sudo service iptables stop ...on both machines. If the problem persists, (and your firewall is iptables), then the problem is elsewhere. Andy On Thu, Dec 27, 2012 at 11:13 AM, Andy Ballingall TF balling...@thefoundry.co.uk wrote: Could it be a firewall issue

Re: [zeromq-dev] Fwd: Beginner question with respect to zmq_proxy

2012-12-27 Thread Andy Ballingall TF
... and sudo service iptables start restarts the firewall again, I should add! On 27 December 2012 16:44, Andy Ballingall TF balling...@thefoundry.co.uk wrote: On 27 December 2012 16:16, Nishant Mittal nmit...@rblt.com wrote: they are on the same network.. i can check if Ubuntu firewalls

Re: [zeromq-dev] zloop_timer() does not fire if added after zloop_start()...

2012-12-28 Thread Andy Ballingall TF
of zloop_destroy(), it'd make an explicit check for the timer existing and not already being in the zombies list. ...but I'm aware that it's probably not my place to start messing around with the API. Anyway - how does that sound? Andy -Pieter On Thu, Dec 27, 2012 at 5:41 PM, Andy Ballingall TF

Re: [zeromq-dev] CZMQ in-depth docs enquiry

2012-12-28 Thread Andy Ballingall TF
on one occasion). https://github.com/zeromq/czmq/tree/master/src Andy On 27 December 2012 20:08, Pieter Hintjens p...@imatix.com wrote: Up to now the only docs are on http://czmq.zeromq.org/. I'll look at writing a full Guide for CZMQ in 2013, since the library is getting quite a lot

Re: [zeromq-dev] Fwd: Beginner question with respect to zmq_proxy

2012-12-28 Thread Andy Ballingall TF
If anyone read this solution and wondered like I did about backwards compatibility, the zmq FAQ goes into a bit more detail about it here: http://www.zeromq.org/area:faq#toc6 It sounds like this shouldn't be an issue going forwards (i.e. backwards compatibility is an aim) Andy On 27 December

Re: [zeromq-dev] zloop_timer() does not fire if added after zloop_start()...

2012-12-28 Thread Andy Ballingall TF
a wrapper object created for each timer, that wrapper pointing to my class instance. I wish I'd thought of it earlier... Andy -Pieter On Fri, Dec 28, 2012 at 11:31 AM, Andy Ballingall TF balling...@thefoundry.co.uk wrote: Hi Pieter, On 27 December 2012 17:25, Pieter Hintjens p

Re: [zeromq-dev] zloop_timer() does not fire if added after zloop_start()...

2012-12-28 Thread Andy Ballingall TF
: zloop: polling for 360 msec (The new timer never fires). Hope that helps! Andy /// START OF CODE /// /* This test exposes a problem with timer handling in zloop whereby an attempt to replace an old timer with a new one in a socket event

[zeromq-dev] czmq: zmq_poll() return value on interrupt = 0

2012-12-31 Thread Andy Ballingall TF
this. I just wanted to clarify whether there this is a typo in the documentation or perhaps an indication that I've not setup everything correctly. The application in question is just a small command-line program running on linux with the interrupt generated with a Ctrl-C to the shell. Andy

Re: [zeromq-dev] czmq: zmq_poll() return value on interrupt = 0

2012-12-31 Thread Andy Ballingall TF
The behaviour isn't as straightforward as I originally stated, so I need to dig further. On 31 December 2012 09:49, Andy Ballingall TF balling...@thefoundry.co.ukwrote: Hi, In the zmq guide here: http://zguide.zeromq.org/page:all#The-CZMQ-High-Level-API it states that zmq_poll should

Re: [zeromq-dev] czmq: zmq_poll() return value on interrupt = 0

2012-12-31 Thread Andy Ballingall TF
I can confirm with a test program that it works as documented, so I'm doing something wrong somewhere... Sorry for the noise. On 31 December 2012 10:15, Andy Ballingall TF balling...@thefoundry.co.ukwrote: The behaviour isn't as straightforward as I originally stated, so I need to dig

[zeromq-dev] Warning about attached and detached threads in czmq

2012-12-31 Thread Andy Ballingall TF
czmq context explicitly (as I did), then you'll run into problems. Only by using zthread_fork() does czmq correctly duplicate the czmq context to ensure thread safety. Hope this helps someone, Andy -- Andy Ballingall Senior Software Engineer The Foundry 6th Floor, The Communications Building

[zeromq-dev] czmq_new() and automatically installed signal handlers

2012-12-31 Thread Andy Ballingall TF
making the signal handling addition an option when calling zctx_new()? (This is the only discussion I could find and it isn't quite what I'm after) http://grokbase.com/t/zeromq/zeromq-dev/11cpsq2ccg/czmq-zctx-new-signal-handler-side-effect Andy -- Andy Ballingall Senior Software Engineer

Re: [zeromq-dev] czmq_new() and automatically installed signal handlers

2013-01-03 Thread Andy Ballingall TF
zctx_interrupted to 1 prior to calling zctx_new() and reset it to 0 immediately afterwards so that my reactor will run normally. Many thanks, Andy I've made a patch that does this: https://github.com/hintjens/czmq/commit/4491c46f2063442eafcaffcebaa31e54dc2ecdf4 Waiting for someone to merge

Re: [zeromq-dev] zmq_socket and threads

2013-01-03 Thread Andy Ballingall TF
to be below the kernel limit, then you shouldn't reach that limit at all should you? Andy On 2 January 2013 21:23, Nishant Mittal nmit...@rblt.com wrote: I know that zmq_sockets are not thread safe. however, is it an issue if I ensure a socket is used ONLY by 1 thread at a time? the reason

Re: [zeromq-dev] zloop_timer() does not fire if added after zloop_start()...

2013-01-16 Thread Andy Ballingall TF
Hi Pieter, That's great! Thank you. Regards, Andy On 14 January 2013 09:25, Pieter Hintjens p...@imatix.com wrote: Andy, Sorry for the slow response on this. I've fixed the problem (thanks for the test case) and made a pull request for the fix: https://github.com/zeromq/czmq/pull/115

Re: [zeromq-dev] Design Question

2013-01-18 Thread Andy Ballingall TF
others are idle. Andy -- Andy Ballingall Senior Software Engineer The Foundry 6th Floor, The Communications Building, 48, Leicester Square, London, WC2H 7LT, UK Tel: +44 (0)20 7968 6828 - Fax: +44 (0)20 7930 8906 Web: http://www.thefoundry.co.uk/ The Foundry Visionmongers Ltd. Registered

[zeromq-dev] Maintenance of cppzmq sockopt Values

2020-11-30 Thread Andy Heroff via zeromq-dev
Hi all,    I have a follow-on code maintenance question related to my question on a new socket option a few weeks back (PR is still in progress, as I had to clear everything internally for the submission first).    We had been using an older version of cppzmq internally, and on update, we

[zeromq-dev] Setting 802.1p VLAN Priority

2020-11-06 Thread Andy Heroff via zeromq-dev
Hi,    We use 0MQ for messaging between applications across various VLANs within our system. Recently, we have added a requirement in which we would like to set the 802.1p priority field to something other than 0 for a subset of these connections (most, but not all). There doesn't appear to be