Hi Asger and everyone,
> There is no deadline, except that we just got the first cut at docbook support
> in, and that will need some time to be finished, and polished up before the
> 1.0.4 release.
Ok, then I have time to rewrite the server patches for the stable code.
> In particular, if it's not too much work, I say that LyX should try to
> know the clients that connect to it by name, just in case we need it
> in the future.
Ok, done. The "int clients" in LyXServer has been replaced by
"vector<string> clients". The server adds the clients names on
"hello" messages instead of doing clients++. On "bye" messages, the server
checks that the client is in the vector<string>, and removes it if that's
the case. Otherwise a warning message is sent to lyxerr. Here is a sample
session:
LyXServer: Received: 'LYXSRV:test1:hello'
LyXServer: Greeting test1
LyXServer: 1 client(s) now
LyXServer: Received: 'LYXSRV:test2:hello'
LyXServer: Greeting test2
LyXServer: 2 client(s) now
LyXServer: Received: 'LYXSRV:test1:bye'
LyXServer: Client test1 said goodbye
LyXServer: 1 client(s) now
LyXServer: Received: 'LYXSRV:test1:bye'
LyXServer: ignoring bye message from unregistered client test1
I add to #include the standard <vector> in lyxserver.h and <algorithm> in
lyxserver.C, but I do not know how to make the necessary modifications to
check for these in the configure stuff, sorry.
> Although a Perl module will hopefully make LyX clients more popular, I still
> doubt that we will have a serious problem with special requests for client
> extensions.
Yeah, kind of difficult imagining herds of client developers asking for
hudreds of extensions... but who knows!
> Since it's difficult to rule out useful specifically targeted
> client extensions in advance, I think we should try to keep the door open,
> unless you think it's too much trouble.
I think I agree. A strategy to cope with feature requests from client
developers would be this one: if it can be done already, explain how; if
it cannot and seems sensible, make it possible.
> you seem to know what you are doing,
don't say this too loud.
I hope to submit everything today or tomorrow (not the 1_0_x patches
though).
All the best,
Stefano
Stefano Ghirlanda, Zoologiska Institutionen, Stockholms Universitet
Office: D554, Arrheniusv. 14, S-106 91 Stockholm, Sweden
Phone: +46 8 164055, Fax: +46 8 167715, Email: [EMAIL PROTECTED]
Support Free Science, look at: http://rerumnatura.zool.su.se