Re: [zeromq-dev] FW: Help With Regard To the ZMQ Forwarder

2012-03-28 Thread Ronald Swain
Hello MinRK and all, Again i am getting an issue with unicode with python 3 i thing they have something different with relevant to unicode, so i use something like: self.receivingSocket = self.zmqContext.socket(zmq.PUB) self.receivingSocket.connect(self._forwaderpubaddress)

[zeromq-dev] Connecting via Websockets to PHP ZeroMQ socket

2012-03-28 Thread Max
Hi, has anyone had success in connecting via Javascript using Websockets to a serverside PHP ZeroMQ socket/server? Basically I am using Rasmus server code from http://toys.lerdorf.com/archives/57-ZeroMQ-+-libevent-in-PHP.html which works (I changed the socket tcp address so that outside

Re: [zeromq-dev] Connecting via Websockets to PHP ZeroMQ socket

2012-03-28 Thread Ian Barber
On Wed, Mar 28, 2012 at 1:45 PM, Max nas...@gmail.com wrote: Hi, has anyone had success in connecting via Javascript using Websockets to a serverside PHP ZeroMQ socket/server? Basically I am using Rasmus server code from http://toys.lerdorf.com/archives/57-ZeroMQ-+-libevent-in-PHP.html

Re: [zeromq-dev] Connecting via Websockets to PHP ZeroMQ socket

2012-03-28 Thread Dan Fairs
On Wed, Mar 28, 2012 at 15:27, Ian Barber ian.bar...@gmail.com wrote: You're trying to connect a websockets client to a ZeroMQ socket, that is not going to work (Rasmus's example is just showing you how to use libevent with ZMQ). You need something serving the websockets side and shuffling

Re: [zeromq-dev] Connecting via Websockets to PHP ZeroMQ socket

2012-03-28 Thread Ian Barber
On Wed, Mar 28, 2012 at 4:50 PM, Dan Fairs dan.fa...@gmail.com wrote: I've used node.js with socket.io as a gateway between the browser and a 0mq network. That said... Both good suggestions, I'd forgotten completely about Paul's bridge. On the node/sockio/zmq/php route, igor had a good (and

Re: [zeromq-dev] REQ/REP for possibly async comm?

2012-03-28 Thread Andrei Zmievski
Okay, will give that a try. Is there a reason why I couldn't use PUB/SUB sockets for this interaction? -Andrei On Tue, Mar 27, 2012 at 6:37 PM, Michel Pelletier pelletier.mic...@gmail.com wrote: If not getting a timely response is an exceptional condition, then you can throw away your REQ

Re: [zeromq-dev] does 0mq keep-alive for connections?

2012-03-28 Thread Yi Ding
I think this patch might address this issue: http://groups.crossroads.io/groups/crossroads-dev/messages/topic/28TjewHeVHgn2J933hQDrp On Tue, Mar 27, 2012 at 7:19 PM, Yi Ding yi.s.d...@gmail.com wrote: Hi everyone, I'm running into a (related?) issue where after a period of being idle, the

Re: [zeromq-dev] does 0mq keep-alive for connections?

2012-03-28 Thread Pieter Hintjens
Yi, On Wed, Mar 28, 2012 at 11:44 AM, Yi Ding yi.s.d...@gmail.com wrote: I think this patch might address this issue: http://groups.crossroads.io/groups/crossroads-dev/messages/topic/28TjewHeVHgn2J933hQDrp Nicely spotted! Feel free to backport it to libzmq, test it, and make a pull request.

Re: [zeromq-dev] FW: Help With Regard To the ZMQ Forwarder

2012-03-28 Thread Ronald Swain
Hello All, Any help on this i am kind of stuck at this and not able to move ahead. I tried to search this error but i didnt find any satisfactory results. Please guide me. From: proj_symb...@live.com To: zeromq-dev@lists.zeromq.org Date: Wed, 28 Mar 2012 12:46:13 +0200 Subject: Re:

Re: [zeromq-dev] FW: Help With Regard To the ZMQ Forwarder

2012-03-28 Thread Ronald Swain
Ok Solved the problem again, by mistake i was trying to call setsockopt on a PUB socket. :-) From: proj_symb...@live.com To: zeromq-dev@lists.zeromq.org Date: Thu, 29 Mar 2012 04:55:18 +0200 Subject: Re: [zeromq-dev] FW: Help With Regard To the ZMQ Forwarder Hello All, Any help on this

Re: [zeromq-dev] FW: Help With Regard To the ZMQ Forwarder

2012-03-28 Thread Ronald Swain
Hello Pieter , Thanks a lot for reply, and i must say this a great mailing list i have ever experienced. :-) The problem was on my side and if you see my latest reply i solved it, i am kind of new to this domain and thats why it is taking me some time to get some basics out. :-) Thanks

[zeromq-dev] Assert if setsockopt wrong used

2012-03-28 Thread Pieter Hintjens
Hi all, Problem: people using setsockopt wrongly get weird downstream behaviours that can take time to debug if they don't systematically check their return codes. Solution: libzmq should assert if passed an invalid getsockopt or setsockopt. Thoughts? Seems a valid use for assertions. I'll

Re: [zeromq-dev] FW: Help With Regard To the ZMQ Forwarder

2012-03-28 Thread MinRK
On Wed, Mar 28, 2012 at 21:16, Ronald Swain proj_symb...@live.com wrote: Hello Pieter , Thanks a lot for reply, and i must say this a great mailing list i have ever experienced. :-) The problem was on my side and if you see my latest reply i solved it, i am kind of new to this domain and

Re: [zeromq-dev] FW: Help With Regard To the ZMQ Forwarder

2012-03-28 Thread Ronald Swain
Hello MinRK, Yes you are correct i am new to Python 3 too, but i am trying hard to figure out how the things are happening. Thanks for your support and hope the next question takes some time :-) Regards, Ronald From: benjami...@gmail.com Date: Wed, 28 Mar 2012 21:30:38 -0700 To:

Re: [zeromq-dev] Assert if setsockopt wrong used

2012-03-28 Thread MinRK
On Wed, Mar 28, 2012 at 21:27, Pieter Hintjens p...@imatix.com wrote: Hi all, Problem: people using setsockopt wrongly get weird downstream behaviours that can take time to debug if they don't systematically check their return codes. Solution: libzmq should assert if passed an invalid

Re: [zeromq-dev] Assert if setsockopt wrong used

2012-03-28 Thread Pieter Hintjens
On Wed, Mar 28, 2012 at 11:43 PM, MinRK benjami...@gmail.com wrote: Holy crap, no. :-) Fair enough. Just double-checking the assumptions. -Pieter ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org

[zeromq-dev] zmq_init(-1) on libzmq master

2012-03-28 Thread Daisuke Maki
Hi, I asked this earlier in IRC: 11:38 lestrrat: shouldn't zmq_init( -1 ) be an error (i.e. return NULL) ?seems like a check used to exist until 6e71a54b, but after that it's gone Is this intentional? It used to return NULL until the above commit. --d

Re: [zeromq-dev] zmq_init(-1) on libzmq master

2012-03-28 Thread Pieter Hintjens
I've sent a pull request: https://github.com/zeromq/libzmq/pull/298 When you have an issue, you can comment on the PR. If/when it gets merged you can test it... Thanks! -Pieter On Thu, Mar 29, 2012 at 12:30 AM, Daisuke Maki lestr...@gmail.com wrote: Hi, I asked this earlier in IRC:    11:38