From e3e1cc71f1835d561005be9b6c13a91327938698 Mon Sep 17 00:00:00 2001 From: Neeserg Parajuli <neesergp@student.unimelb.edu.au> Date: Thu, 19 Apr 2018 13:52:48 +1000 Subject: [PATCH] added readme --- Readme.md | 5 +++++ server | Bin 14800 -> 0 bytes 2 files changed, 5 insertions(+) delete mode 100755 server diff --git a/Readme.md b/Readme.md index 4deae84..5e6760d 100644 --- a/Readme.md +++ b/Readme.md @@ -2,3 +2,8 @@ Author: Neeserg Parajuli Id: 582811 HTTP server to handle multiple simple GET requests +1) type in make +2) enter server [portno] [rootpath] +3) run tests +credit to Beej's Guide to Network Programming by Brian "Beej Jorgensen" Hall +http://beej.us/guide/bgnet/html/single/bgnet.html diff --git a/server b/server deleted file mode 100755 index 07177b02d2a25d6ea816b6e6a9d36fee501691ac..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 14800 zcmb<-^>JfjWMqH=CI&kO5HEn&0W1U|85jhNz+5olz+l0^$>6{s&mhCV#=yY9%D}(? zQ|AC>!RQ|#!x$JCU^EBV1O^6X1_lNe1_lNTCWwFq6T}1<Edvo|fYDH6z-|NC2bD&# z86@^c7DO^Iz-R^r1+V}}Kgg{Na$qh4gIofH0i`2A4q{+nXaG41ECbO8avn&Z1XP~{ zR6UG-05X_?fdNLt{0A}yghN0EFfcHLK>Y`!UBGrQFu-V#T98n{(~=Yrn+NJ~9vMiu zz~~r|A_fKq7!6Vj5(<1;k^*ukh)oO@fGP@t+J`G#7@+Ql(NOO)=;vf6nVIP4r0C{k z=9O0HR#=$nnwjVo=j$1P;}v8+NUghHDA*>DF(CJWLKWm@5e7&a0LedS@tSs8@!;Q| zg*jHMed_ny+Shx4)GISEfa4pa56obIxB?_@`KcQkLSW-D2vF<_VTdv?<S;NWU=y## zAuh-OOF^iH&BmeLgb};>LO8^q;V|bA4)JIl;y-bS3*)fY5r?=H4)HxW%zubOJeU!C zxLwAfo(G4$>^Q{N<1l9{4)I$!#1(LuuZttzQ*oFhiN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