[Assignment-7] app restructure and cleanup

This commit is contained in:
Paul Zinselmeyer 2024-07-06 17:25:06 +02:00 committed by saschato
parent 9cd7ef8703
commit feb0bd1b73
10 changed files with 304 additions and 345 deletions

View file

@ -1,7 +1,7 @@
#include <errno.h>
#include <string.h>
#include "intermediary.h"
#include "employee.h"
#include "proxy.h"
#include "proxysetup.h"
#include "util.h"
@ -16,8 +16,8 @@ int main(int argc, char** argv) {
char* command = argv[1];
if(strcmp(command, "intermediary")==0)
handle_intermediary(argc-2, argv+2);
if(strcmp(command, "employee")==0)
handle_employee(argc-2, argv+2);
else if (strcmp(command, "proxy")==0)
handle_proxy(argc-2, argv+2);
else if (strcmp(command, "proxysetup")==0)