diff options
author | Andrea Smith <smit9523@umn.edu> | 2020-11-13 20:07:16 -0600 |
---|---|---|
committer | Andrea Smith <smit9523@umn.edu> | 2020-11-13 20:07:16 -0600 |
commit | 971114a661e4f48ac69c26f472b47d50ea4be13c (patch) | |
tree | d3659329c62ae1c42fbb2917420886030db716b7 /P3 | |
parent | Add error checking (diff) | |
download | csci4061-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 'P3')
-rw-r--r-- | P3/server.c | 4 |
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) |