BarryServer : Git

All the code for all my projects
// BarryServer : Git / IRCWebHooks / commit / 3f04e2245ef9565e8e9853cac3f2114fbfdd566d / src / main.c

// Related

IRCWebHooks

Barry Adding files 3f04e22 (3 years, 3 months ago)
diff --git a/src/main.c b/src/main.c
new file mode 100644
index 0000000..877fb67
--- /dev/null
+++ b/src/main.c
@@ -0,0 +1,22 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/wait.h>
+#include <unistd.h>
+#include <netdb.h>
+#include <pthread.h>
+
+#include "config.h"
+#include "irc.h"
+#include "webserver.h"
+
+int
+main(int argc, char *argv[])
+{
+	pthread_t srvThread, ircThread;
+	pthread_create(&srvThread, NULL, (void *) srv, NULL);
+	pthread_create(&ircThread, NULL, (void *) bot, NULL);
+	pthread_join(srvThread, NULL);
+	pthread_join(ircThread, NULL);
+
+	return 0;
+}