Skip to content
This repository
Newer
Older
100644 19 lines (13 sloc) 0.232 kb
282d900b »
2010-12-24 Removed global variables.
1 #include "server.h"
49a0a2e9 »
2010-12-20 First import.
2
5b7aa50e »
2011-04-08 Partial rewrite, adding WebSockets, threads, pool.
3 #include <stdlib.h>
4
49a0a2e9 »
2010-12-20 First import.
5 int
6 main(int argc, char *argv[]) {
7
a8bccb4d »
2011-01-01 Refactoring
8 struct server *s;
760a6182 »
2010-12-27 Conf file from CLI, and more ideas.
9
10 if(argc > 1) {
a8bccb4d »
2011-01-01 Refactoring
11 s = server_new(argv[1]);
760a6182 »
2010-12-27 Conf file from CLI, and more ideas.
12 } else {
a8bccb4d »
2011-01-01 Refactoring
13 s = server_new("webdis.json");
760a6182 »
2010-12-27 Conf file from CLI, and more ideas.
14 }
49a0a2e9 »
2010-12-20 First import.
15
a8bccb4d »
2011-01-01 Refactoring
16 server_start(s);
49a0a2e9 »
2010-12-20 First import.
17
18 return EXIT_SUCCESS;
19 }
20
Something went wrong with that request. Please try again.