]> git.meshlink.io Git - meshlink/blob - meshlink-sample/meshlinkapp.c
tinc_start() - skeleton of the API call. The function starts the main tinc thread...
[meshlink] / meshlink-sample / meshlinkapp.c
1 #include <libmeshlink.h>
2
3 int main(int argc , char **argv){
4
5 char *confbase = "/tmp/meshlink/";
6 char *name = "test";
7
8 tinc_setup(confbase, name);
9 tinc_start(confbase);
10 sleep(10); //give time to this thread to finish before we exit
11 return 0;
12 }
13