Re: [zeromq-dev] Delphi binding.

2012-07-05 Thread Pieter Hintjens
Nice... :) On Thu, Jul 5, 2012 at 7:34 PM, Balázs Varga wrote: > Dear members, > > I just want to let you know, that I've started working on a 0MQ binding for > Delphi, and pushed the initial version of the code, which is here: > https://github.com/bvarga/delphizmq . For now it's not well tested,

Re: [zeromq-dev] Design Suggestion for simple app using zmq

2012-07-05 Thread Joshua Foster
Are the ACK's async? If they are not, you can use the REQ socket instead. Are you using multiple threads? Joshua On Jul 5, 2012, at 7:58 PM, Diffuser78 wrote: > Anyone ? > > On Thu, Jul 5, 2012 at 8:23 AM, Diffuser78 wrote: > I have a client and a server app. Client needs to send 1000 lightw

Re: [zeromq-dev] Design Suggestion for simple app using zmq

2012-07-05 Thread Diffuser78
Anyone ? On Thu, Jul 5, 2012 at 8:23 AM, Diffuser78 wrote: > I have a client and a server app. Client needs to send 1000 lightweight > (5KBs) messages per second to the server. Client also wants an ACK from > server that server got the msg that client sent. > > Here is what I have designed. Plea

Re: [zeromq-dev] Websockets as a Transport ?

2012-07-05 Thread Mark Farnan
Thanks for the quick reply. I'll take a look at VTX. Sadly, we already know that using ZeroMQ on Port 80/443 won't fly at all. Been down this road already with trying to use a TCP socket on these ports. Regards Mark Farnan Director, Product Development Petrolink Services Inc +1 281

Re: [zeromq-dev] Websockets as a Transport ?

2012-07-05 Thread Ian Barber
On Thu, Jul 5, 2012 at 11:53 PM, Mark Farnan wrote: > Correct, What I am after is a bit different. > > I am looking for using Websockets as native transport, machine to machine > running ZeroMQ natively at each end, across firewalls. For our case we > can't rely on a TCP port being open to wor

Re: [zeromq-dev] Websockets as a Transport ?

2012-07-05 Thread Mark Farnan
Correct, What I am after is a bit different. I am looking for using Websockets as native transport, machine to machine running ZeroMQ natively at each end, across firewalls. For our case we can't rely on a TCP port being open to work through. Websockets provides the ideal transport protocol f

Re: [zeromq-dev] Websockets as a Transport ?

2012-07-05 Thread Paul Colomiets
Hi Mark, Ian, On Thu, Jul 5, 2012 at 12:44 AM, Ian Barber wrote: >> I’m evaluating zeroMQ, and one main criteria we have is to support >> Websockets for client to server communications. >> >> >> >> Has there been any work on making a native Websocket transport for ZeroMQ >> in the core C++ librar

[zeromq-dev] Design Suggestion for simple app using zmq

2012-07-05 Thread Diffuser78
I have a client and a server app. Client needs to send 1000 lightweight (5KBs) messages per second to the server. Client also wants an ACK from server that server got the msg that client sent. Here is what I have designed. Please let me know your thought in case you see incorrect usage of the patt

Re: [zeromq-dev] Error: comparison between signed and unsigned integer expressions

2012-07-05 Thread Steven McCoy
On 5 July 2012 06:09, Ivan Pechorin wrote: > Android NDK has the following typedef: > > typedef int socklen_t > > I wonder why they choose to go against UNIX specs that require socklen_t > to be unsigned (see > http://pubs.opengroup.org/onlinepubs/7908799/xns/syssocket.h.html) > It appears to be

Re: [zeromq-dev] How to safely use a socket in multiple threads in zmq 2.1.11

2012-07-05 Thread Thiago Cangussu
On Thu, Jul 5, 2012 at 3:35 AM, Ivan Pechorin wrote: > Can you just have one socket >> per thread in thread local storage? >> > > Sometime it's not feasible because you don't have control on these threads > and on their number. > > For instance, if you develop some library or component that is int

Re: [zeromq-dev] How to safely use a socket in multiple threads in zmq 2.1.11

2012-07-05 Thread Thiago Cangussu
On Thu, Jul 5, 2012 at 3:27 AM, Ivan Pechorin wrote: > > > 2012/7/5 Thiago Cangussu > >> >> The question is: what should I do to make this multi-threaded usage of >> sockets safe? Is it enough to guarantee that multiple threads do not >> perform send/receive simultaneously? >> >> > This is alread

[zeromq-dev] Delphi binding.

2012-07-05 Thread Balázs Varga
Dear members, I just want to let you know, that I've started working on a 0MQ binding for Delphi, and pushed the initial version of the code, which is here: https://github.com/bvarga/delphizmq . For now it's not well tested, however 20 examples translated from the guide are working great for me.

[zeromq-dev] Error: cannot link with -lzmq

2012-07-05 Thread Sharon Ben-Asher
Hello again, After successful build of the C lib, I have a problem with building zmq.jar: configure:15622: checking for zmq_init in -lzmq configure:15647: g++ -o conftest -g -O2 -D_REENTRANT -D_THREAD_SAFE -fPIC -I/home/sharon/zeromq-android/include -L/home/sharon/zeromq-android/lib conftest.c

Re: [zeromq-dev] Error: comparison between signed and unsigned integer expressions

2012-07-05 Thread Ivan Pechorin
2012/7/5 Pieter Hintjens > Hi Sharon, > > OK, so socklen_t is definitely signed on your platform. If you would > make an issue in Jira, I'll make a patch for all current 0MQ versions. > > Android NDK has the following typedef: typedef int socklen_t I wonder why they choose to go against UNIX sp

Re: [zeromq-dev] Error: comparison between signed and unsigned integer expressions

2012-07-05 Thread Pieter Hintjens
Hi Sharon, OK, so socklen_t is definitely signed on your platform. If you would make an issue in Jira, I'll make a patch for all current 0MQ versions. Thanks Pieter On Thu, Jul 5, 2012 at 6:56 PM, Sharon Ben-Asher wrote: > I solved the problem by converting the sizeof to int like this > > if (s

Re: [zeromq-dev] Error: comparison between signed and unsigned integer expressions

2012-07-05 Thread Sharon Ben-Asher
I solved the problem by converting the sizeof to int like this if (sa->sa_family == AF_INET && sa_len >= (int)sizeof (address.ipv4)) { I guess it's a platform specific issue? Anyway, it is needed to compile the lib for ARM. From: Sharon Ben-Asher Sent: Thursday, July 05, 2012 9:52 AM To: 'zeromq-

Re: [zeromq-dev] Error: comparison between signed and unsigned integer expressions

2012-07-05 Thread Pieter Hintjens
Hi Sharon, Is it possible that socklen_t is signed on that compiler? Try inserting a cast "(size_t) sa_len". If that works, we'll make a patch. -Pieter On Thu, Jul 5, 2012 at 3:51 PM, Sharon Ben-Asher wrote: > Hello, > > > > I am trying to build ZeroMQ build for Android. I have a VM with Ubunt