aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Smith <smit9523@umn.edu>2020-11-13 20:07:16 -0600
committerAndrea Smith <smit9523@umn.edu>2020-11-13 20:07:16 -0600
commit971114a661e4f48ac69c26f472b47d50ea4be13c (patch)
treed3659329c62ae1c42fbb2917420886030db716b7
parentAdd error checking (diff)
downloadcsci4061-971114a661e4f48ac69c26f472b47d50ea4be13c.tar
csci4061-971114a661e4f48ac69c26f472b47d50ea4be13c.tar.gz
csci4061-971114a661e4f48ac69c26f472b47d50ea4be13c.tar.bz2
csci4061-971114a661e4f48ac69c26f472b47d50ea4be13c.tar.lz
csci4061-971114a661e4f48ac69c26f472b47d50ea4be13c.tar.xz
csci4061-971114a661e4f48ac69c26f472b47d50ea4be13c.tar.zst
csci4061-971114a661e4f48ac69c26f472b47d50ea4be13c.zip
Start dispatch
Diffstat (limited to '')
-rw-r--r--P3/server.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/P3/server.c b/P3/server.c
index 0226e41..8957d0d 100644
--- a/P3/server.c
+++ b/P3/server.c
@@ -77,6 +77,8 @@ void initCache(){
char* getContentType(char * mybuf) {
// Should return the content type based on the file type in the request
// (See Section 5 in Project description for more details)
+
+
}
// Function to open and read the file from the disk into the memory
@@ -166,6 +168,8 @@ int main(int argc, char **argv) {
// Start the server
// Create dispatcher and worker threads (all threads should be detachable)
+ pthread_t thread;
+ pthread_create(&thread, NULL, dispatch, NULL); // DEBUG! figure out last arg
// Create dynamic pool manager thread (extra credit A)