On Tue, Dec 21, 2010 at 2:02 AM, Ville M. Vainio <[email protected]> wrote:
> On Tue, Dec 21, 2010 at 5:48 AM, taa, Leo Newbie <[email protected]> wrote:
>
>>>Leoremote is not using network sockets, just local sockets for inter-
>>>process communication.
>>
>> I don't understand the difference between "network sockets" and "local
>> sockets." Perhaps PVX just shields me from having to deal with the
>> difference.
>
> Local sockets use file names instead of host + port.
>
> http://en.wikipedia.org/wiki/Unix_domain_socket
>
>> If I wrote a PVX program to communicate with leoRemote, what would the
>> "conversation" look like? Something like ftp?
>
> RPC without return values is better anologue. If you need to get data
> back, write it to file.
>
>
>
>> S=Server (leoRemote), C=Client (a PVX program)
>>
>> C: [opens file handle at TCP address 127.0.0.1, port 1]
>>
>> S: [sends a greeting banner? maybe the Leo version#?]
>>
>> C: [somehow sends a command to Leo to open an existing file OR to create a
>> new file, and tells Leo the file name]
>
> Check source code of leoremote.py for an example. Terry also did a
> bunch of examples, perhaps he should push them to contrib branch.
>
>> Or is there a better way?
>
> I would just generate an input file (xml or "objtree" syntax used by
> the cacher, see treecaching.txt), and use leoremote to import it.

What is the syntax to get an objtree from </path/to/myfile.leo> ?

Thanks,
Kent

>
> --
> Ville M. Vainio @@ Forum Nokia
>
> --
> You received this message because you are subscribed to the Google Groups 
> "leo-editor" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/leo-editor?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to