diff options
author | Chris Hiszpanski <chris@liburtc.org> | 2021-04-23 11:17:03 -0400 |
---|---|---|
committer | Chris Hiszpanski <chris@liburtc.org> | 2021-04-23 11:17:03 -0400 |
commit | 79f4f70de1a6014d53b245b8069c833ce943f943 (patch) | |
tree | eb998bbcb5348ff61428b8e9f00ce55c33419fd6 /examples/sandbox.c | |
parent | bf35c493b425886f12e3daf530239b5e6b1bca7d (diff) |
Update inline license blocks and expand tabs
Diffstat (limited to 'examples/sandbox.c')
-rw-r--r-- | examples/sandbox.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/examples/sandbox.c b/examples/sandbox.c deleted file mode 100644 index 2f3728d..0000000 --- a/examples/sandbox.c +++ /dev/null @@ -1,33 +0,0 @@ -#include <signal.h> -#include <unistd.h> - -#include "mdns.h" -#include "urtc.h" - - -int main() { - sigset_t ss; - int signal; - - const char *stun[] = { - "stun.l.google.com:19302", - "stun2.l.google.com:19302", - NULL - }; - - sigemptyset(&ss); - sigaddset(&ss, SIGINT); - sigaddset(&ss, SIGTERM); - sigaddset(&ss, SIGQUIT); - - urtc_peerconn_t *pc = urtc_peerconn_create(stun); - - // query for raspberry.local - mdns_query("raspberry"); - - sigwait(&ss, &signal); - - urtc_peerconn_destroy(pc); - - return 0; -} |