Re: [zeromq-dev] An interesting use-case for EdgeNet : Asynchronous IRC?

2014-01-08 Thread crocket
Do you plan to submit Vector to play store in the near future? On Jan 8, 2014 10:00 AM, Sean Robertson sprobert...@gmail.com wrote: Ah wow that's exactly what this needed. I'll try to spend some time this weekend porting it and moving things over to the edgenet org. On Tue, Jan 7, 2014 at

Re: [zeromq-dev] [zmqpp] receiving can only be done to empty messages?

2014-01-08 Thread Ben Gray
On 7 January 2014 17:06, Lindley French lindl...@gmail.com wrote: At the same time I'm going to strongly suggest reviewing the assertion: assert(EAGAIN == zmq_errno()); in the same function. I'm frequently getting EINTR here and failing the assertion when I run in gdb. (I think gdb throws a

Re: [zeromq-dev] [zmqpp] receiving can only be done to empty messages?

2014-01-08 Thread Ben Gray
Pull request https://github.com/zeromq/zmqpp/pull/29 raised for this part of the issue (and the assert). On 7 January 2014 16:24, Lindley French lindl...@gmail.com wrote: In zmqpp, the socket_t::receive() method throws an exception if you pass it a non-empty message_t. This seems to be

Re: [zeromq-dev] An interesting use-case for EdgeNet : Asynchronous IRC?

2014-01-08 Thread Sean Robertson
Depends how near - I would like to eventually, but right now it barely works outside of carefully calibrated laboratory conditions. On Wed, Jan 8, 2014 at 1:29 AM, crocket crockabisc...@gmail.com wrote: Do you plan to submit Vector to play store in the near future? On Jan 8, 2014 10:00 AM,

Re: [zeromq-dev] [zmqpp] receiving can only be done to empty messages?

2014-01-08 Thread Ben Gray
It's true we will have the whole message so will not enter a blocking state if we continue to send / recv the individual frames of a multipart message after an EINTR error code. On 8 January 2014 10:29, Matt Connolly matt.conno...@me.com wrote: As far as I understand, the purpose of EINTR is

[zeromq-dev] Router socket to force peer disconnect

2014-01-08 Thread Dmitriy Vsekhvalnov
Hi All, continue my little evaluation of zeromq and wanted to ask next question: is it possible to force disconnect of client from router side? (e.g. disconnect req or dealer). If it is not possible are those clients who connected to router socket consume resources? A lot? Even if no messages

[zeromq-dev] How do we activate and connect to WiFi hotspots in edgenets?

2014-01-08 Thread crocket
People may be able to devise an algorithm for automatically turning on hotspots in several smartphones among many. But, even with hotspots turned on, how do phones connect to each other if smartphones simply refuse to connect to randomly named hotspots? Should we forcefully rename hotspots to a

Re: [zeromq-dev] How do we activate and connect to WiFi hotspots in edgenets?

2014-01-08 Thread Lindley French
In phones that support it, perhaps WiFiDirect would be a good solution here. On Wed, Jan 8, 2014 at 7:03 AM, crocket crockabisc...@gmail.com wrote: People may be able to devise an algorithm for automatically turning on hotspots in several smartphones among many. But, even with hotspots

Re: [zeromq-dev] How do we activate and connect to WiFi hotspots in edgenets?

2014-01-08 Thread Bruno D. Rodrigues
I don’t know too many details about FON, but we have an ISP in Portugal that provides FON over all their clients (if they accept) and as soon as I connect to one FON hotstpot, the device automatically connects to any other. No idea if it’s just because it’s the same name, or if there is any

[zeromq-dev] Building on Windows (32 and 64 bit)

2014-01-08 Thread Robin Newton
Hi, I'm trying to find out about building 0MQ on Windows. Having recently done some interesting prototyping with 0MQ on Linux (thanks, btw) I now need to make sure that 0MQ is available for general use in the same manner as other third party libraries used where I work. This includes having

Re: [zeromq-dev] How do we activate and connect to WiFi hotspots in edgenets?

2014-01-08 Thread Arnaud Loonstra
On 01/08/2014 03:46 PM, Bruno D. Rodrigues wrote: I don’t know too many details about FON, but we have an ISP in Portugal that provides FON over all their clients (if they accept) and as soon as I connect to one FON hotstpot, the device automatically connects to any other. No idea if it’s just

Re: [zeromq-dev] Building on Windows (32 and 64 bit)

2014-01-08 Thread Richard_Newton
Hi Robin, If you can't get the existing vs solutions to do what you want, you can always use the cmake build (CMakeLists.txt in root of sources), it should be able to do both 32 bit and 64 bits for whatever version of visual studio you have. You'll need to install cmake first:

[zeromq-dev] I need some advice please for StreamQ-Proxy

2014-01-08 Thread Laurent Alebarde
Hi Devs, I am prototyping a ZMQ_STREAM based proxy to manage to proxy CURVE. My first prototype with one client and one worker works, but is not very usefull. I have to pair clients and workers. My first idea was to pair identity-ies attributed by the ZMQ_STREAM socket. But it cannot work as

Re: [zeromq-dev] I need some advice please for StreamQ-Proxy

2014-01-08 Thread Pieter Hintjens
On Wed, Jan 8, 2014 at 7:03 PM, Laurent Alebarde l.aleba...@free.fr wrote: I have to pair clients and workers. Identity information is encrypted. That means you have two basic design options: * a pass-through proxy that does not understand CURVE, and simply shuffles packets from one side to

Re: [zeromq-dev] [zmqpp] receiving can only be done to empty messages?

2014-01-08 Thread Lindley French
One additional minor suggestion: In the poller class, the add() and remove() overloads that take simple ints should probably accept them by value rather than const reference. There's no performance penalty, and it would make the type system play a bit nicer in some cases. For instance, I just

Re: [zeromq-dev] Send HTTP request and get response using ZeroMQ

2014-01-08 Thread Justin Karneges
Hi Ravir, You shouldn't need a PHP version of Zurl. Just run the daemon and then speak with it via ZeroMQ from any language. For reference, you can see tools/get.py which performs a GET request from Python. Fanout.io uses Zurl on its servers for various tasks, and we decided to open source

Re: [zeromq-dev] [zmqpp] receiving can only be done to empty messages?

2014-01-08 Thread Lindley French
A question about the implementation. I notice that the zmqpp::message_t class jumps through some hoops whenever the add() or raw_new_msg() method is called. It appears to be creating a new array of parts, moving all existing parts there, and then swapping them. What's the rationale for this

Re: [zeromq-dev] Building on Windows (32 and 64 bit)

2014-01-08 Thread Steven McCoy
On 8 January 2014 10:43, Robin Newton robin.new...@linguamatics.com wrote: The easy thing to do is to use the Windows installers (http://zeromq.org/distro:microsoft-windows) to get the various files I need onto a machine, and then copy them. However:- (a) The latest installers are for

Re: [zeromq-dev] I need some advice please for StreamQ-Proxy

2014-01-08 Thread Laurent Alebarde
Hi Pieter, Thanks for your answer. Yes, your first case has been the direction I have followed from the advices you have had already given to me, and put in a spec here : https://github.com/lalebarde/streamq-proxy/blob/master/SRD.md In the test, I have added some CURVE handcheck checks, but

[zeromq-dev] [zmqpp] [libzmq] Wrapping zmq messages

2014-01-08 Thread Lindley French
Until we get UDP up and running in 0MQ, I'm using Boost.Asio for my UDP needs. However, my API uses zmqpp::message_t types, so I need to convert between these. This is easy enough when sending, since a boost::asio::buffer only needs a pointer and a size and these can be obtained from zmq message

[zeromq-dev] WifiOpti for Android source

2014-01-08 Thread Arnaud Loonstra
Hey Pieter, I told you a while ago about this WifiOpti app which handles your wifi connections in Android so it won't drain your battery. I talked to the developer and he agreed to put the source on Github: https://github.com/rejhgadellaa/wifiopti/ As you said it could be interesting for

Re: [zeromq-dev] I need some advice please for StreamQ-Proxy

2014-01-08 Thread Laurent Alebarde
One idea, let's call it case 3: A worker can be paired with many clients, but only one in the hancheck phase. For any client which has passed the handcheck, the proxy prepends a frame with its identity when forwarding to the worker. The worker resends this first frame in its answer. This

Re: [zeromq-dev] I need some advice please for StreamQ-Proxy

2014-01-08 Thread Pieter Hintjens
OK, so your problem is a worker can be paired with many clients. This was the use case for libcurve. So I suggest you use that, on top of NULL. On Wed, Jan 8, 2014 at 10:38 PM, Laurent Alebarde l.aleba...@free.fr wrote: Hi Pieter, Thanks for your answer. Yes, your first case has been the

Re: [zeromq-dev] WifiOpti for Android source

2014-01-08 Thread Pieter Hintjens
This is awesome. I'm going to suggest people bring interesting projects into the edgenet organization on github (much like we do with ZeroMQ) so they can cross fertilize and get contributors. On Wed, Jan 8, 2014 at 10:59 PM, Arnaud Loonstra arn...@sphaero.org wrote: Hey Pieter, I told you a

Re: [zeromq-dev] How do we activate and connect to WiFi hotspots in edgenets?

2014-01-08 Thread Pieter Hintjens
(a) I think we need to start an edgenet mailing list, as this is both such an interesting discussion, and yet so different from what people are expecting here (b) wifidirect is a not quite mesh 1-to-1 link and in fact very close to what I was thinking of with edgenet in the beginning. There's not

Re: [zeromq-dev] How do we activate and connect to WiFi hotspots in edgenets?

2014-01-08 Thread Arnaud Loonstra
On 01/08/2014 03:46 PM, Bruno D. Rodrigues wrote: I don’t know too many details about FON, but we have an ISP in Portugal that provides FON over all their clients (if they accept) and as soon as I connect to one FON hotstpot, the device automatically connects to any other. No idea if it’s just

Re: [zeromq-dev] How do we activate and connect to WiFi hotspots in edgenets?

2014-01-08 Thread Lindley French
Wifi isn't the only answer here. Bluetooth can provide similar functionality. I don't know the details but the Alljoyn people claim to be able to automatically set up Bluetooth links with phones in range. On Jan 8, 2014, at 6:27 PM, Pieter Hintjens p...@imatix.com wrote: (a) I think we need

Re: [zeromq-dev] How do we activate and connect to WiFi hotspots in edgenets?

2014-01-08 Thread crocket
Until there comes the edgenet mailing list, we can talk about it here. By manual assistance, do you mean people turn on hotspots and connect to them manually on site? Is there any better manual method than I described above? On Jan 9, 2014 8:28 AM, Pieter Hintjens p...@imatix.com wrote: (a) I

[zeromq-dev] Notification of peer disconnection for ZMQ_STREAM sockets.

2014-01-08 Thread André Caron
Hi there! First and foremost, kudos for all your awesome work on this excellent library :-) I'm experimenting with ZMQ_STREAM sockets and I'm not sure how to handle disconnection of peers. The man page is pretty clear on how to forcibly disconnect a peer (send 0-length message), but there is no

Re: [zeromq-dev] How do we activate and connect to WiFi hotspots in edgenets?

2014-01-08 Thread Pieter Hintjens
Bluetooth is not designed for general app-to-app messaging, rather as a wireless connector for low-rate devices. You can plausibly use it to set up WiFi connections, a hybrid solution. AllJoyn is made by Qualcomm, who have the expertise to make BlueTooth work. For most people it's not practical.

Re: [zeromq-dev] How do we activate and connect to WiFi hotspots in edgenets?

2014-01-08 Thread Pieter Hintjens
On Thu, Jan 9, 2014 at 1:32 AM, crocket crockabisc...@gmail.com wrote: Until there comes the edgenet mailing list, we can talk about it here. Sure. By manual assistance, do you mean people turn on hotspots and connect to them manually on site? Ideally, from within applications, e.g.

[zeromq-dev] Send HTTP queue through ZeroMQ

2014-01-08 Thread Ravir Pandey
Hi all, I have my own web application which uses third party API's through which thousand of HTTP request being sent daily. I want to know if i send HTTP request through ZeroMQ. Will ZeroMQ able to prioritise the HTTP request in queue and also i want to know from you guys that is this a good way

Re: [zeromq-dev] Send HTTP request and get response using ZeroMQ

2014-01-08 Thread Ravir Pandey
I am not familiar with python :( Can you please explain a little bit? On Thu, Jan 9, 2014 at 2:02 AM, Justin Karneges jus...@affinix.com wrote: Hi Ravir, You shouldn't need a PHP version of Zurl. Just run the daemon and then speak with it via ZeroMQ from any language. For reference, you

Re: [zeromq-dev] I need some advice please for StreamQ-Proxy

2014-01-08 Thread Laurent Alebarde
And a 4th one: have the security protocol (CURVE or PARANO) build on top of libzmq or czmq. They would simply use the libzmq default mechanism NULL. BTW, what are the pros/cons to have a security protocol built has a libzmq mechanism (as CURVE today), or built on top of libzmq ? Le

Re: [zeromq-dev] How do we activate and connect to WiFi hotspots in edgenets?

2014-01-08 Thread crocket
Nowadays, almost every city is covered with WiFi hotspots. And, almost every modern building and meetup is covered well by WiFi hotspots. Most houses have a hotspot or two. Why don't we take advantage of existing WiFi hotspots? It would make things so much easier while we devise a way to