aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/examples.md
blob: 6abec99e99de942fccb0c96811d5194508cc3da0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
\page examples Examples of usage

All of these are subject to change, as the API isn't remotely stable yet.

Example of constructing a service and writing it out:
\include write-service.example.c

Example of reading a service in and printing it for debugging:
\include read-service.example.c

Example of making a request to a daemon via TCP transport:
\include fetch-tcp.example.c

As above, but using the system configured default transport:
\include fetch-default.example.c