assert(addr->family == AF_UNSPEC);
void sk_getaddr(SockAddr addr, char *buf, int buflen){#ifdef IPV6    if (addr->family == AF_INET6) {	FIXME; /* I don't know how to get a text form of an IPv6 address. */    } else#endif    if (addr->family == AF_INET) {	struct in_addr a;	a.s_addr = p_htonl(addr->address);	strncpy(buf, p_inet_ntoa(a), buflen);	buf[buflen-1] = '\0';    } else {	assert(addr->family == AF_UNSPEC);	strncpy(buf, addr->hostname, buflen);	buf[buflen-1] = '\0';    }}