add some notes and basic code
This commit is contained in:
17
src/main.c
17
src/main.c
@@ -1,6 +1,17 @@
|
||||
#include "main.h"
|
||||
#include <stdio.h>
|
||||
#include "colors.h"
|
||||
#include "server.h"
|
||||
#include "utils.h"
|
||||
|
||||
int main(void) {
|
||||
puts(GREEN_COLOR "Running cws..." RESET_COLOR);
|
||||
int main(int argc, char **argv) {
|
||||
fprintf(stdout, BOLD GREEN "Running cws...\n" RESET);
|
||||
|
||||
int ret = start_server();
|
||||
if (ret < 0) {
|
||||
fprintf(stderr, BOLD RED "Unable to start web server\n");
|
||||
}
|
||||
|
||||
print_ips("google.com", "80");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user