diff options
author | Matt Strapp <strap012@umn.edu> | 2020-11-15 14:33:44 -0600 |
---|---|---|
committer | Matt Strapp <strap012@umn.edu> | 2020-11-15 14:33:44 -0600 |
commit | 485a2cb0bed24237acb8b06e7a360ff0a22a8757 (patch) | |
tree | 215e27dcb7628f7aff635da09669a5fdab422107 | |
parent | Fix vscode (diff) | |
download | csci4061-485a2cb0bed24237acb8b06e7a360ff0a22a8757.tar csci4061-485a2cb0bed24237acb8b06e7a360ff0a22a8757.tar.gz csci4061-485a2cb0bed24237acb8b06e7a360ff0a22a8757.tar.bz2 csci4061-485a2cb0bed24237acb8b06e7a360ff0a22a8757.tar.lz csci4061-485a2cb0bed24237acb8b06e7a360ff0a22a8757.tar.xz csci4061-485a2cb0bed24237acb8b06e7a360ff0a22a8757.tar.zst csci4061-485a2cb0bed24237acb8b06e7a360ff0a22a8757.zip |
add s p a c i n g
-rw-r--r-- | P3/server.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/P3/server.c b/P3/server.c index 89d425d..d709198 100644 --- a/P3/server.c +++ b/P3/server.c @@ -134,13 +134,28 @@ int main(int argc, char **argv) { } // Get the input args + + //Port int port = argv[3]; + + //Webroot path char* path = argv[4]; + + //(static) number of dispatchers int dispatchers = argv[5]; + + //(static) number of workers int workers = argv[6]; - int dynFlag = argv[7]; + + //Dynamic worker flag + bool dynFlag = argv[7]; + + //Queue Length int qLen = argv[8]; + + //Max cache size int cSiz = argv[9]; + // Perform error checks on the input arguments if (port < 1025 || port > 65535) { perror("Invalid port. Port must be greater than 1024 or less than 65536.\n"); @@ -214,6 +229,8 @@ int main(int argc, char **argv) { printf("This should never be printed."); return 42; } + +//Placeholder name. Sets exit flag so process can die happily and not sad. static void eggs(int signo) { exitFlag |= 1; } |