help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Look for data serialisation format to implement communication betwee


From: Thien-Thi Nguyen
Subject: Re: Look for data serialisation format to implement communication between Emacs and external program.
Date: Tue, 08 Jan 2013 10:44:54 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux)

() Oleksandr Gavenko <address@hidden>
() Mon, 07 Jan 2013 15:35:01 +0200

   But as input come from external process I need manually check for
   input end because parsing of incomplete input take error
   "args-out-of-range".

   I don't know how to resolve this issue.

   Also I don't see have can I split data into packets with "bindat"
   (Emacs send request and Python send response in a loop without
   dropping connection while returned data is valid). As solution - make
   10 attempt with 1 sec delay and then report error - incomplete or
   invalid packet...

See ‘accept-process-output’: (info "(elisp) Accepting Output")
and ‘condition-case’: (info "(elisp) Handling Errors")

   I expect to find a way to get data validation for free (like XSD/RNC
   for XML).

It depends on what you mean by "valid data" and "for free", i suppose.

-- 
Thien-Thi Nguyen ..................................... GPG key: 4C807502
.                  NB: ttn at glug dot org is not me                   .
.                 (and has not been since 2007 or so)                  .
.                        ACCEPT NO SUBSTITUTES                         .
........... please send technical questions to mailing lists ...........

Attachment: pgpqnT96RBtD2.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]