Using socket typedefs in http server.