diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-05-29 22:15:41 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-05-29 23:53:55 +0200 |
commit | f5c013e32d1c8ee931bec45cee7bc04c5d536d50 (patch) | |
tree | e2f33d0e9e6a7873154cfe4a20b6d9b0c413caaf /doc/afb-application-writing.html | |
parent | a4487d8a46d3e4400bf73ce817fa1a34cde31a6f (diff) |
Adds documentation
Also remove a old cmakefile
Change-Id: I2748514934790043a15bb48d1d06bd82967d4494
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'doc/afb-application-writing.html')
-rw-r--r-- | doc/afb-application-writing.html | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/doc/afb-application-writing.html b/doc/afb-application-writing.html new file mode 100644 index 00000000..adb5ca7b --- /dev/null +++ b/doc/afb-application-writing.html @@ -0,0 +1,40 @@ +<html> +<head> + <link rel="stylesheet" type="text/css" href="doc.css"> + <meta charset="UTF-8"> +</head> +<body> +<a name="HOWTO.WRITE.an.APPLICATION.above.AGL.FRAMEWORK"></a> +<h1>HOWTO WRITE an APPLICATION above AGL FRAMEWORK</h1> + +<pre><code>version: 1 +Date: 29 mai 2016 +Author: José Bollo +</code></pre> + +<p><ul> + <li><a href="#HOWTO.WRITE.an.APPLICATION.above.AGL.FRAMEWORK">HOWTO WRITE an APPLICATION above AGL FRAMEWORK</a> + <ul> + <li><a href="#Writing.a.C.application">Writing a C application</a></li> + </ul> + </li> +</ul></p> + +<a name="Writing.a.C.application"></a> +<h2>Writing a C application</h2> + +<p>C applications can use the binder afb-daemon through a websocket connection.</p> + +<p>The library <strong>libafbwsc</strong> is made for C clients that want +to connect to the afb-daemon binder.</p> + +<p>The program <strong>afb-client-demo</strong> is the C program that use +the provided library <strong>libafbwsc</strong>. +Its source code is here +<a href="https://github.com/iotbzh/afb-daemon/blob/master/src/afb-client-demo.c">src/afb-client-demo.c</a>.</p> + +<p>The current implementation use libsystemd and file descriptors. +This may be changed in the future to also support secure sockets +and being less dependant of libsystemd.</p> +</body> +</html> |