Added port argument, looped to accept single connections rather indefinitely, checked return value of bind to exit on errors such as address in use, permission denied etc
Added port argument, looped to accept single connections rather indefinitely, checked return value of bind to exit on errors such as address in use, permission denied etc

mrnoda/dumbhttpd