3 <link rel="stylesheet" type="text/css" href="doc.css">
7 <a name="HOWTO.WRITE.an.APPLICATION.above.AGL.FRAMEWORK"></a>
8 <h1>HOWTO WRITE an APPLICATION above AGL FRAMEWORK</h1>
16 <li><a href="#HOWTO.WRITE.an.APPLICATION.above.AGL.FRAMEWORK">HOWTO WRITE an APPLICATION above AGL FRAMEWORK</a>
18 <li><a href="#Writing.a.C.application">Writing a C application</a></li>
23 <a name="Writing.a.C.application"></a>
24 <h2>Writing a C application</h2>
26 <p>C applications can use the binder afb-daemon through a websocket connection.</p>
28 <p>The library <strong>libafbwsc</strong> is made for C clients that want
29 to connect to the afb-daemon binder.</p>
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>
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>