adb5ca7b925a5252a2fa6bfc6060e53392670a90
[src/app-framework-binder.git] / doc / afb-application-writing.html
1 <html>
2 <head>
3   <link rel="stylesheet" type="text/css" href="doc.css">
4   <meta charset="UTF-8">
5 </head>
6 <body>
7 <a name="HOWTO.WRITE.an.APPLICATION.above.AGL.FRAMEWORK"></a>
8 <h1>HOWTO WRITE an APPLICATION above AGL FRAMEWORK</h1>
9
10 <pre><code>version: 1
11 Date:    29 mai 2016
12 Author:  José Bollo
13 </code></pre>
14
15 <p><ul>
16  <li><a href="#HOWTO.WRITE.an.APPLICATION.above.AGL.FRAMEWORK">HOWTO WRITE an APPLICATION above AGL FRAMEWORK</a>
17  <ul>
18   <li><a href="#Writing.a.C.application">Writing a C application</a></li>
19  </ul>
20  </li>
21 </ul></p>
22
23 <a name="Writing.a.C.application"></a>
24 <h2>Writing a C application</h2>
25
26 <p>C applications can use the binder afb-daemon through a websocket connection.</p>
27
28 <p>The library <strong>libafbwsc</strong> is made for C clients that want
29 to connect to the afb-daemon binder.</p>
30
31 <p>The program <strong>afb-client-demo</strong> is the C program that use
32 the provided library <strong>libafbwsc</strong>.
33 Its source code is here
34 <a href="https://github.com/iotbzh/afb-daemon/blob/master/src/afb-client-demo.c">src/afb-client-demo.c</a>.</p>
35
36 <p>The current implementation use libsystemd and file descriptors.
37 This may be changed in the future to also support secure sockets
38 and being less dependant of libsystemd.</p>
39 </body>
40 </html>