int saddr_len, saddr_port;
unsigned int saddr_len; int saddr_port;
char *get_host(int sock, int remote) {	struct sockaddr_in saddr;	int saddr_len, saddr_port;	char *saddr_ip_str = NULL;		saddr_len = sizeof(saddr);	memset(&saddr, 0, sizeof(saddr));	saddr_port = -1;#if LIBVNCSERVER_HAVE_NETINET_IN_H	if (remote) {		if (!getpeername(sock, (struct sockaddr *)&saddr, &saddr_len)) {			saddr_ip_str = inet_ntoa(saddr.sin_addr);		}	} else {		if (!getsockname(sock, (struct sockaddr *)&saddr, &saddr_len)) {			saddr_ip_str = inet_ntoa(saddr.sin_addr);		}	}#endif	if (! saddr_ip_str) {		saddr_ip_str = "unknown";	}	return strdup(saddr_ip_str);}