*Jean-Marc Lasgouttes writes:
 |
|||||| "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:
Lars| *Alejandro Aguilar Sierra writes: | Ahem, we have not yet
Lars| decided for phyton. The point of Lars post, | AIUI, is to
Lars| improve the lyxserver to be able to try it with more | script
Lars| languages.
 |
Lars| AIUI?
 |
Lars| Still to be able to start arbitrary programs from inside lyx we
Lars| need some scripting support. (pipes need to be setup from
Lars| within: pipe(); fork(); exec() ) (and if we want to build a
Lars| newsreader inside lyx we need a powerful scripting language)
 |  Is there some places where I could read on the differences between
 | pipes/sockets/whatever? Or perhaps you could give me a short
 | tutorial?

pipe(2)
write(2)
read(2)
socket(2)
bind(2)
accept(2)
connect(2)
(and a lot more, this will not tell much about how to use)

pipes can be used for interprossess communication on the same machine.
they must be initiatet from the same program:

lyx -> setup pipes -> fork -> exec(ispell)

named pipes

lyx -> setup named pipe  (file "lyxin" or whatever is created)
foobar -> connect to (open) "lyxin"

unix sockets (sockets used that is similar to namedpipes)

lyx -> setup unix socket. "lyxsocket"
foo -> connect to "lyxsocket"; lyx spawns new lyxserver that talks with foo
bar -> connect to "lyxsocket"; lyx spawns new lyxserver that talks with bar

ip sockets similar to unix socket, but can be used from remote. (I
don't think we want that.)

 |  I thought you could connect several clients to the same server...
 | I'll have to check this out.

But the server will never know which of the it speaks too. And all the
clients connecting will work on the same buffer.

        Lgb

Reply via email to