FCGI

4 views
Skip to first unread message

Nicolas

unread,
Mar 2, 2010, 7:56:42 AM3/2/10
to QWaveClient
Hi, I saw the commit to enable FCGI to connect to QWave-server,
however I never used fcgi, how should we connect to it ? Maybe we
could start building an quick and dirty QWave-webclient ?

Torben Weis

unread,
Mar 2, 2010, 8:19:07 AM3/2/10
to qwave...@googlegroups.com
Hi,

in waveserver.conf there is a section for the FCGI port, i.e. 9871 by default. In the README is a short description on how to enable FCGI in lighttpd (should be easy in Apache as well).

To get FCGI up and running proceed as follows:
a) Configure your web server and restart it
b) Start the waveserver
c) Use a web browser to request a URL which is forwarded via FCGI (http://localhost/echo.fcgi in my example).
d) You get a web page generated by the waveserver

The web server will open a TCP connection to the waveserver and forward HTTP requests this way (that is the purpose of FCGI). Currently, the waveserver will only echo back the request, i.e. the FCGI interface does not do any real wave-work.

I am working on a method for sending protobuf messages via this HTTP/FCGI interface (see my posting on the waveprotocol mailing list). This will definitely lead towards a webclient. I will focus on the task of sending protobuf messages between waveserver and the browser. There is of course a lot more todo for a webclient, i.e. a UI (even a simplistic one would be great). Furthermore, the OT code needs to be ported to JavaScript, because the web-client needs to do OT as well.

Greetings
Torben


2010/3/2 Nicolas <patry....@gmail.com>

Hi, I saw the commit to enable FCGI to connect to QWave-server,
however I never used fcgi, how should we connect to it ? Maybe we
could start building an quick and dirty QWave-webclient ?



--
---------------------------
Prof. Torben Weis
Universitaet Duisburg-Essen
torbe...@gmail.com

Nicolas

unread,
Mar 2, 2010, 8:31:49 AM3/2/10
to QWaveClient
For the Javascript part, we can look at http://github.com/p2k/pygowave
They have something running nicely.

On Mar 2, 10:19 pm, Torben Weis <torben.w...@gmail.com> wrote:
> Hi,
>
> in waveserver.conf there is a section for the FCGI port, i.e. 9871 by
> default. In the README is a short description on how to enable FCGI in
> lighttpd (should be easy in Apache as well).
>
> To get FCGI up and running proceed as follows:
> a) Configure your web server and restart it
> b) Start the waveserver

> c) Use a web browser to request a URL which is forwarded via FCGI (http://localhost/echo.fcgiin my example).


> d) You get a web page generated by the waveserver
>
> The web server will open a TCP connection to the waveserver and forward HTTP
> requests this way (that is the purpose of FCGI). Currently, the waveserver
> will only echo back the request, i.e. the FCGI interface does not do any
> real wave-work.
>
> I am working on a method for sending protobuf messages via this HTTP/FCGI
> interface (see my posting on the waveprotocol mailing list). This will
> definitely lead towards a webclient. I will focus on the task of sending
> protobuf messages between waveserver and the browser. There is of course a
> lot more todo for a webclient, i.e. a UI (even a simplistic one would be
> great). Furthermore, the OT code needs to be ported to JavaScript, because
> the web-client needs to do OT as well.
>
> Greetings
> Torben
>

> 2010/3/2 Nicolas <patry.nico...@gmail.com>


>
> > Hi, I saw the commit to enable FCGI to connect to QWave-server,
> > however I never used fcgi, how should we connect to it ? Maybe we
> > could start building an quick and dirty QWave-webclient ?
>
> --
> ---------------------------
> Prof. Torben Weis
> Universitaet Duisburg-Essen

> torben.w...@gmail.com

Torben Weis

unread,
Mar 2, 2010, 8:58:54 AM3/2/10
to qwave...@googlegroups.com


2010/3/2 Nicolas <patry....@gmail.com>

For the Javascript part, we can look at http://github.com/p2k/pygowave
They have something running nicely.

I could only find python code. Do they use pyjama to turn python into javascript?
torbe...@gmail.com

Davide Carnovale

unread,
Mar 2, 2010, 9:02:08 AM3/2/10
to qwave...@googlegroups.com
Here you can find a js api along with the qt one: http://github.com/p2k/pygowave-qt
HTH

2010/3/2 Torben Weis <torbe...@gmail.com>

Torben Weis

unread,
Mar 2, 2010, 9:10:57 AM3/2/10
to qwave...@googlegroups.com
Hi,

thanks for the link. 

However, I am thinking about a web-client inside a stand-alone browser, not a desktop web-client which hosts a WebKit instance (as QWaveClient does for gadgets). So unless I did not get the point, this JavaScript code would not really help in this case?

Greetings
Torben



2010/3/2 Davide Carnovale <francesco.dav...@gmail.com>

Nicolas

unread,
Mar 2, 2010, 9:19:39 AM3/2/10
to QWaveClient
Here is the JS I saw http://github.com/p2k/pygowave/tree/master/pygowave_client/src/view/
but yeah doesn't seem to be any OT there, I think they use PyCow to
generate their javascript.

Still might be worth a look though

Nicolas

On Mar 2, 11:10 pm, Torben Weis <torben.w...@gmail.com> wrote:
> Hi,
>

> thanks for the link.
>
> However, I am thinking about a web-client inside a stand-alone browser, not
> a desktop web-client which hosts a WebKit instance (as QWaveClient does for
> gadgets). So unless I did not get the point, this JavaScript code would not
> really help in this case?
>
> Greetings
> Torben
>

> 2010/3/2 Davide Carnovale <francesco.davide.carnov...@gmail.com>


>
>
>
>
>
> > Here you can find a js api along with the qt one:
> >http://github.com/p2k/pygowave-qt
> > HTH
>

> > 2010/3/2 Torben Weis <torben.w...@gmail.com>
>
> >> 2010/3/2 Nicolas <patry.nico...@gmail.com>
>
> >> For the Javascript part, we can look athttp://github.com/p2k/pygowave

> torben.w...@gmail.com

Torben Weis

unread,
Mar 2, 2010, 12:25:21 PM3/2/10
to qwave...@googlegroups.com
Hi,

there is some new code in qwaveclient/webclient.

jsot.js is a partial port of my OT code to JavaScript. So far one can create a document, a delta and apply the delta to the document. Support for transforming deltas is not yet done. jsot.html is a test case that shows how to use the javascript library. I think that porting the QWaveClient code may be the easiest way so far (at least I know my own code :-)

Cheers
Torben


2010/3/2 Nicolas <patry....@gmail.com>
Reply all
Reply to author
Forward
0 new messages