Re: [zeromq-dev] ZMQ_WEBSOCKET - any work in progress?

2013-08-21 Thread Michael Haberler
I found a starting point for what I want - libwebsockets/zmq bridging in C++:

https://github.com/dsoo/shardfree

very early, very c++11ish, but a cheatsheet to start from

-Michael


Am 11.08.2013 um 14:47 schrieb Michael Haberler :

> 
> Am 11.08.2013 um 02:09 schrieb Justin Karneges :
> 
>> On 08/09/2013 10:50 AM, Michael Haberler wrote:
>>> 
>>> Am 27.06.2013 um 20:58 schrieb Pieter Hintjens :
>>> 
 So ZMQ_STREAM is now a usable socket type for TCP clients and servers,
 and I've made a test case that shows simple a HTTP ping-pong, in
 tests/test_stream.cpp.
>>> 
>>> I think it's a great idea!
>>> 
>>> Is anybody planning/working on a similar idea for websockets (maybe using 
>>> the libwebsockets.org code)?
>> 
>> You could just use ZMQ_STREAM to talk to a websocket client/server. IMO, 
>> anything beyond what is supported by 0MQ should be the job of a gateway 
>> worker. Websockets would be in the realm of Mongrel2, ZeroGW, Zurl, etc.
> 
> I am aware of the available gateway process solutions. I do not like them for 
> the extra process and extra context switches involved, which doesnt exactly 
> improve latency. A in-process solution with worker threads would be fine 
> though.
> 
>> Even ZMQ_STREAM smells like feature creep ("send and receive from a 
>> non-0MQ peer" - what the what?). But everyone loves a good raw mode.
> 
> I dont concur on the 'feature creep' view. That is rather basic 
> interoperability - you can't expect the rest of networking applications to 
> all become ZMQ-aware.
> 
> - Michael
> 
> ___
> zeromq-dev mailing list
> zeromq-dev@lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] ZMQ_WEBSOCKET - any work in progress?

2013-08-11 Thread Michael Haberler

Am 11.08.2013 um 02:09 schrieb Justin Karneges :

> On 08/09/2013 10:50 AM, Michael Haberler wrote:
>> 
>> Am 27.06.2013 um 20:58 schrieb Pieter Hintjens :
>> 
>>> So ZMQ_STREAM is now a usable socket type for TCP clients and servers,
>>> and I've made a test case that shows simple a HTTP ping-pong, in
>>> tests/test_stream.cpp.
>> 
>> I think it's a great idea!
>> 
>> Is anybody planning/working on a similar idea for websockets (maybe using 
>> the libwebsockets.org code)?
> 
> You could just use ZMQ_STREAM to talk to a websocket client/server. IMO, 
> anything beyond what is supported by 0MQ should be the job of a gateway 
> worker. Websockets would be in the realm of Mongrel2, ZeroGW, Zurl, etc.

I am aware of the available gateway process solutions. I do not like them for 
the extra process and extra context switches involved, which doesnt exactly 
improve latency. A in-process solution with worker threads would be fine though.

> Even ZMQ_STREAM smells like feature creep ("send and receive from a 
> non-0MQ peer" - what the what?). But everyone loves a good raw mode.

I dont concur on the 'feature creep' view. That is rather basic 
interoperability - you can't expect the rest of networking applications to all 
become ZMQ-aware.

- Michael

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] ZMQ_WEBSOCKET - any work in progress?

2013-08-10 Thread Justin Karneges
On 08/09/2013 10:50 AM, Michael Haberler wrote:
>
> Am 27.06.2013 um 20:58 schrieb Pieter Hintjens :
>
>> So ZMQ_STREAM is now a usable socket type for TCP clients and servers,
>> and I've made a test case that shows simple a HTTP ping-pong, in
>> tests/test_stream.cpp.
>
> I think it's a great idea!
>
> Is anybody planning/working on a similar idea for websockets (maybe using the 
> libwebsockets.org code)?

You could just use ZMQ_STREAM to talk to a websocket client/server. IMO, 
anything beyond what is supported by 0MQ should be the job of a gateway 
worker. Websockets would be in the realm of Mongrel2, ZeroGW, Zurl, etc.

Even ZMQ_STREAM smells like feature creep ("send and receive from a 
non-0MQ peer" - what the what?). But everyone loves a good raw mode.

Justin
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev


[zeromq-dev] ZMQ_WEBSOCKET - any work in progress?

2013-08-09 Thread Michael Haberler

Am 27.06.2013 um 20:58 schrieb Pieter Hintjens :

> So ZMQ_STREAM is now a usable socket type for TCP clients and servers,
> and I've made a test case that shows simple a HTTP ping-pong, in
> tests/test_stream.cpp.

I think it's a great idea!

Is anybody planning/working on a similar idea for websockets (maybe using the 
libwebsockets.org code)?

- Michael

___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev