2007-03-02 Stdio Communication Api's Implementation

Here is a draft of Stdio Communication Api's Implementation.

Here is a draf of format.

Stream contains messages one after another.
Each message constains information accoring size (in Bytes) , newline and following data and newline.

Template:

Data size: XXX
DATA X…
Data size: YYY
DATA Y…
Data size: ZZZ
DATA Z….

As new line we assume both : "\xA" and "\xD\xA" .

Tips:

For adding next message msg.dat you can use bash commands alike:

(echo; echo "Data size:" $(cat msg.dat | wc -c) ) » input.txt
cat msg.dat » input.txt

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.