libcomm 1.0.0 review

Download
by rbytes.net on

libcomm's purpose of this library is to facilitate handling structured messages between programs

License: GPL (GNU General Public License)
File size: 13K
Developer: Roland Smith
0 stars award from rbytes.net

libcomm's purpose of this library is to facilitate handling structured messages between programs. The messages consist of three parts: a keyword, a body and a delimiter.

The delimiter denotes the end of the message. Examples of a delimiter can be a simple newline ("n") for single line messages, or a double ("nn") newline for multi-line messages.

The keyword is used to identify the message. In the receiving program, it is used to dispatch the body to a handler function.

The body is everything between the keyword and the delimiter.

An example of the usage of this library might be to facilitate the communication between a GUI frontend and a program doing calculations in the background (the "backend").

Since the messages are human-readable (as opposed to shared memory or binary messages), it would enable the backend to be tested separately from the frontend, either by a human or by a testing script.

BUILDING THE LIBRARY

Invoking the "make" command gives you a list of all possible options.

The usual invocation for a system-wide installation of the library would be to do "make all", "make test", login as root, and then do a "make install".

Alternatively you can embed the library in your own program, by sticking it into a subdirectory, and invoking "make static" there.

USING THE LIBRARY

See the manual pages launch_program.3 and kill_program.3 on how to use the
functions.

libcomm 1.0.0 keywords