finished reed.c by copying beej\'s shit
beej's server finally working