Macro'ed out GETHOSTBYNAME, and fixed if-statement braces to be on a new line for consistency