]> git.meshlink.io Git - meshlink/blob - meshlink-sample/meshlinkapp.c
7dd7f501c715f3f362b1d8c51eb33c5ec202017f
[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 while(1) {
11 sleep(10); //give time to this thread to finish before we exit
12 tinc_send_packet(NULL,"datafgsdfsd",10);
13 }
14 return 0;
15 }
16