add some notes and basic code

This commit is contained in:
2024-11-08 20:21:31 +01:00
parent e2bded0456
commit 7f186ff44b
11 changed files with 246 additions and 11 deletions

View File

@@ -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;
}