2015-03-04 17:14:04 -06:00
|
|
|
LibreOffice On-Line WebSocket server
|
|
|
|
|
|
|
|
See protocol.txt for a description of the protocol to be used over the
|
|
|
|
websocket.
|
|
|
|
|
|
|
|
Uses libpng and the Poco library, from
|
|
|
|
http://pocoproject.org/index.html. Build it with ./configure
|
|
|
|
--prefix=/opt/poco && make install. Probably is available packaged in
|
|
|
|
some distros
|
|
|
|
|
|
|
|
At least I like the Poco library. But if it is not acceptable for some
|
|
|
|
reason, please scream quickly, before too much code that uses Poco has
|
|
|
|
been written... I found Poco while looking for code to do the
|
|
|
|
WebSocket handshake and marshalling. But that functionality is just a
|
|
|
|
small part of what Poco does.
|
|
|
|
|
2015-03-18 08:36:27 -05:00
|
|
|
This uses autofoo so build like this:
|
|
|
|
|
|
|
|
autoreconf
|
|
|
|
automake --add-missing
|
|
|
|
./configure --enable-debug --enable-silent-rules --with-lokit-path=<...>/include --with-poco-includes=<..>./include --with-poco-libs=<...>/lib
|
|
|
|
make
|
2015-03-09 04:30:56 -05:00
|
|
|
|
|
|
|
For Windows, a proper VS2013 project is needed.
|
2015-03-04 17:14:04 -06:00
|
|
|
|
2015-03-18 08:36:27 -05:00
|
|
|
See SOW for the directions of further work.
|
2015-03-04 17:14:04 -06:00
|
|
|
|
|
|
|
Also there is unconditional debugging output etc.
|
|
|
|
|
|
|
|
Run loolwsd for instance like this to test:
|
|
|
|
|
2015-03-18 08:36:27 -05:00
|
|
|
(echo load foo.odt; echo tile width=500 height=500 tileposx=0 tileposy=0 tilewidth=10000 tileheight=10000; sleep 10) |
|
|
|
|
./loolwsd --lopath=<...>/instdir/program --test
|
2015-03-04 17:14:04 -06:00
|
|
|
|
|
|
|
The handling of termination is a bit fragile, occasionally it dumps
|
|
|
|
core somewhere in LO code when quitting. Don't be scared.
|