Removed Extern from socaddr_in and hostent