Macro for hostname buffer length.
Moved some stuff around.