Am 02.03.2014 um 13:11 schrieb Mark Wendt <wendt.m...@gmail.com>:

> On Sat, Mar 1, 2014 at 3:04 PM, Michael Haberler <mai...@mah.priv.at> wrote:
> 
>> 
>> Am 01.03.2014 um 18:19 schrieb W. Martinjak <mats...@play-pla.net>:
>> 
>>> It seems the thrill of joy has gone.... ;)
>> 
>> not for me - in fact I think it as reassuring to see we to converge on the
>> same concept: Web UI interaction will happen over Websockets, and with JSON
>> objects mapped to internal representation at the boundary; it is the
>> approach taken by Peter Jensen with rockhopper, and  (minus websockets)
>> also the approach Sergey has taken in emcweb.
>> 
>> The current implementation uses a Websockets proxy server based on
>> libwebsockets (http://libwebsockets.org/trac/libwebsockets). That is a
>> relatively low level bridge, but it is very fast, has a stable API, and the
>> package is well supported by author and community. It also builds easily.
>> So it's a safe stopgap.
>> 
>> I see several interesting alternatives to libwebsockets/C:
>> 
>> One would be to use node.js instead. There are several advantages to that,
>> in particular it makes it much easier to to server-side extensions (in
>> JavaScript instead of C), and many required bindings (zeroMQ, protobuf,
>> Websockets) are available stock for node.js . The reason why I am not using
>> node.js yet at this point in time is: this target still moves too fast.
>> 
>> Another one would be to do the proxy in Go: also, all bindings available
>> stock, and very fast. It is another interpretive language, and a bit heavy
>> to require up front. It has significant potential for near-RT operation
>> relative to Python; it is still a garbage-collecting language and hence not
>> hard-RT capable.
>> 
>> The third stock option one would be twisted, and an-all Python proxy.
>> 
>> I think it really boils down to quality and effort to build prerequisites.
>> But certainly there is room for experimentation and alternatives.
>> 
>> In fact I would be very interested to cooperate with a person
>> knowledgeable in node.js for a prototype interface to what I already have.
>> Any takers?
>> 
>> 
>> - Michael
>> 
> 
> 
> I take it this WebUI implementation would require a web server running on
> the local linux machine with all the included overhead and security
> concerns that web servers have?  Or is there some small, really safe,
> really secure subset of apache that doesn't require a lot of overheard, and
> comes secure out of the box running only on the local machine, accessible
> to only the local machine>

yes, this is the case - libwebsockets can also serve files via http. So there's 
an optional mini http server within the same process; no separate server needed 
just to serve a few static html,js, image files from a single directory. 
Actually it shares the port with Websockets, so just one URI for both. 
Basically just a bootrom for a client Javascript application. For something 
more fancy server-side one would choose something else, but that is not a 
problem I need to address.

Both websockets an http channels do support SSL and certificates if needed.

Note I'm not building a WebUI - I work on the support to build to make it easy 
to build one. You cant expect more Javascript from me than a simple jsvcp HAL 
UI example with a few buttons, sliders and leds ;)

- Michael


> I install, configure and run web servers on a daily basis here at work.
> Apache is not for the casual user and it can swipe a lot of resources if
> not set up correctly, and is not very secure out of the box.
> 
> Mark
> ------------------------------------------------------------------------------
> Flow-based real-time traffic analytics software. Cisco certified tool.
> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
> Customize your own dashboards, set traffic alerts and generate reports.
> Network behavioral analysis & security monitoring. All-in-one tool.
> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to