Getting ride of '*declaration of 'struct sockaddr_in*' will not be visible outside of this function*'