[zeromq-dev] Basic server.c example

2013-03-15 Thread Pritesh Acharya
Hi, I'm running the first server.c example of zmq guide. Instead of using client.c example to send message to server, I want to use some linux command to do that. I've tried several attempts like 1. $ echo “hello” /dev/tcp/localhost/ 2. nc localhost 3. echo hello | socat -

[zeromq-dev] Confusion in the parallel pipe example

2013-04-09 Thread Pritesh Acharya
In the parallel pipe example, zmq_bind (sender, tcp://*:5557); zmq_connect (sink, tcp://localhost:5558); and s_send (sink, 0); s_send (sender, string); how does the control continues in the first s_send and block on the second s_send, when I haven't started sink on 5558 port. ?

[zeromq-dev] ruby binding for zmq

2013-04-17 Thread Pritesh Acharya
I tried rbzmq from https://github.com/zeromq but it doesn't install. I think this binding is no longer support for newer zmq. When I looked around i found ffi-rzmq is also ruby binding for zmq. I wanna know the difference between gem zqm and ffi-zmq. Which one should I use ? Thanks, Pritesh

[zeromq-dev] libevent kqueue doesn't work on fd returned from zmq_getsockopt()

2013-05-03 Thread Pritesh Acharya
I'm writing a service in C programming using libevent and zmq. Msg is pushed from python code to C service using PUSH-PULL pattern. fd received from zmq socket: void *receiver = zmq_socket (base.zmq_ctx, ZMQ_PULL); zmq_connect (receiver, tcp://localhost:5557);int fd=0;size_t fd_len = sizeof(fd);

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

2013-05-08 Thread Pritesh Acharya
-getsockopt in short, once ZMQ_FD is readable you need to look at ZMQ_EVENTS and consume all messages until ZMQ_EVENTS is clear jon On 3 May 2013 11:01, Pritesh Acharya priteshacha...@gmail.com wrote: I'm writing a service in C programming using libevent and zmq. Msg is pushed from

Re: [zeromq-dev] libevent kqueue doesn't work on fd returned from zmq_getsockopt()

2013-05-08 Thread Pritesh Acharya
Content-Type: text/plain; charset=iso-8859-1 you need to read the man page about ZMQ_FD and ZMQ_EVENTS http://api.zeromq.org/3-2:zmq-getsockopt in short, once ZMQ_FD is readable you need to look at ZMQ_EVENTS and consume all messages until ZMQ_EVENTS is clear jon On 3 May 2013 11:01, Pritesh

[zeromq-dev] problem linking czmq on czmq_selftest on Windows machine

2014-01-21 Thread Pritesh Acharya
I am using Windows 8, Visual Studio 2010. I compiled zmq dynamically and czmq statically, but unable to compile the czmq_selftest project. I checked the additional library directory and added path to czmq.lib. Error 1 error LNK2019: unresolved external symbol _zauth_test referenced in function

[zeromq-dev] zmq with ssh

2014-02-11 Thread Pritesh Acharya
Is zmq using ssh supported.I couldn't find anything such in the core library. Is there a library to secure zmq connection using ssh encription? -Pritesh ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org

[zeromq-dev] memory leak or heap problem in czmq on Windows build

2014-04-02 Thread Pritesh Acharya
Hi, zmq version: zeromq-4.0.3(build as Windows DLL) czmq version: czmq-2.0.3(build as Windows DLL) IDE: Visual Studio Professional 2010 I have a small progream which creates two thread and uses ZMQ_PAIR socket over inproc to send data from one to another. One thread sends data using zstr_send and

Re: [zeromq-dev] memory leak or heap problem in czmq on Windows build

2014-04-02 Thread Pritesh Acharya
And the strange thing is, If I use static version of czmq build, everything works fine and no error on free(string). On Wed, Apr 2, 2014 at 11:55 AM, Pritesh Acharya priteshacha...@gmail.comwrote: Hi, zmq version: zeromq-4.0.3(build as Windows DLL) czmq version: czmq-2.0.3(build as Windows