aboutsummaryrefslogtreecommitdiffstats
path: root/P4/README.md
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-12-16 06:38:12 -0600
committerMatt Strapp <strap012@umn.edu>2020-12-16 06:38:12 -0600
commitbdd1a19e5bddf75a79814692cef07513085bdf51 (patch)
treed3182012fdbf00c69fadee03fc0a7538099776b8 /P4/README.md
parentadd temporary header print (diff)
downloadcsci4061-bdd1a19e5bddf75a79814692cef07513085bdf51.tar
csci4061-bdd1a19e5bddf75a79814692cef07513085bdf51.tar.gz
csci4061-bdd1a19e5bddf75a79814692cef07513085bdf51.tar.bz2
csci4061-bdd1a19e5bddf75a79814692cef07513085bdf51.tar.lz
csci4061-bdd1a19e5bddf75a79814692cef07513085bdf51.tar.xz
csci4061-bdd1a19e5bddf75a79814692cef07513085bdf51.tar.zst
csci4061-bdd1a19e5bddf75a79814692cef07513085bdf51.zip
finish P4
Diffstat (limited to '')
-rw-r--r--P4/README.md38
1 files changed, 38 insertions, 0 deletions
diff --git a/P4/README.md b/P4/README.md
new file mode 100644
index 0000000..163e439
--- /dev/null
+++ b/P4/README.md
@@ -0,0 +1,38 @@
+# CSCI 4061: Project 4
+
+The fourth project in CSCI 4061: Intro to Operating Systems.
+
+## Fall 2020
+
+- **Test machine:** atlas.cselabs.umn.edu
+- **Date:** 12/10/2020
+- **Name:** Andrea Smith, Matt Strapp
+- **x500:** smit9523, strap012
+
+The purpose of this program is to create a multi-threaded web server by using POSIX threads. In this project, we wrote the backend using POSIX sockets.
+
+In order to run this program, compile with the included makefile (run ```make``` in the directory with no additional arguments). After that, run ```./web_server``` with the following additional arguments seperated by only a space (with no quotes or brackets):
+[Port used (between 1025 and 65535)] [Web server directory] [Number of dispatch threads] [Number of worker threads] [Maximum worker queue length] [NOT IMPLEMENTED (Use 0)] [Maximum cache length]
+
+
+#### Program structure
+
+```init():```
+Binds a port that the server can use to communicate with the outside world.
+
+```accept_connection():```
+Makes a one-time use socket for the connection.
+
+```get_request()```
+Takes the HTTP request and translates it to a file path that the server can use.
+
+```return_result()```
+Formats the return to the HTTP protocol and returns the successful request back to the client.
+
+```return_error()```
+Formats the return to the HTTP protocol and returns the unsuccessful request back to the client.
+
+
+#### Team Contributions:
+
+Matt wrote init(), return_result(), and return_error(). Andrea wrote accept_connection() and get_request(). \ No newline at end of file