Renamed files, updated header comments
[transsip-mirror.git] / src / transsip.c
blobfb64d5e4a06f9b851c9513a886a1a276f40889c8
1 /*
2 * transsip - the telephony network
3 * By Daniel Borkmann <daniel@transsip.org>
4 * Copyright 2011 Daniel Borkmann <dborkma@tik.ee.ethz.ch>,
5 * Swiss federal institute of technology (ETH Zurich)
6 * Subject to the GPL, version 2.
7 */
9 #include <stdio.h>
10 #include <stdlib.h>
11 #include <unistd.h>
12 #include <stdlib.h>
13 #include <string.h>
15 #include "die.h"
16 #include "compiler.h"
17 #include "xmalloc.h"
18 #include "version.h"
20 static void help(void)
22 printf("\ntranssip %s, elliptic-curve-crypto-based p2p telephony network\n",
23 VERSION_STRING);
24 printf("http://www.transsip.org\n\n");
25 printf("Usage: transsip [options]\n");
26 printf("Options:\n");
27 printf(" -v|--version Print version\n");
28 printf(" -h|--help Print this help\n");
29 printf("\n");
30 printf("Example:\n");
31 printf("\n");
32 printf("Note:\n");
33 printf(" There is no default port specified, so that you are forced\n");
34 printf(" to select your own! For client/server status messages see syslog!\n");
35 printf("\n");
36 printf("Secret ingredient: 7647-14-5\n");
37 printf("\n");
38 printf("Please report bugs to <bugs@transsip.org>\n");
39 printf("Copyright (C) 2011 Daniel Borkmann <dborkma@tik.ee.ethz.ch>,\n");
40 printf("License: GNU GPL version 2\n");
41 printf("This is free software: you are free to change and redistribute it.\n");
42 printf("There is NO WARRANTY, to the extent permitted by law.\n\n");
43 die();
46 static void version(void)
48 printf("\ntranssip %s, elliptic-curve-crypto-based p2p telephony network\n",
49 VERSION_STRING);
50 printf("Build: %s\n", BUILD_STRING);
51 printf("http://www.transsip.org\n\n");
52 printf("Please report bugs to <bugs@transsip.org>\n");
53 printf("Copyright (C) 2011 Daniel Borkmann <dborkma@tik.ee.ethz.ch>,\n");
54 printf("License: GNU GPL version 2\n");
55 printf("This is free software: you are free to change and redistribute it.\n");
56 printf("There is NO WARRANTY, to the extent permitted by law.\n\n");
57 die();
60 int main(int argc, char **argv)
62 return 0;