add client testing

This commit is contained in:
2024-11-08 22:19:47 +01:00
parent 7f186ff44b
commit f13426283e
10 changed files with 156 additions and 28 deletions

View File

@@ -1,17 +1,14 @@
#include "main.h"
#include "colors.h"
#include "server.h"
#include "utils.h"
int main(int argc, char **argv) {
fprintf(stdout, BOLD GREEN "Running cws...\n" RESET);
fprintf(stdout, BOLD GREEN "[server] Running cws...\n" RESET);
int ret = start_server();
int ret = start_server(NULL, "3030");
if (ret < 0) {
fprintf(stderr, BOLD RED "Unable to start web server\n");
}
print_ips("google.com", "80");
return 0;
}