I need to connect to an IPv6 address. This is not hardcoded. I will obtain IPv6 addresses in byte form (char *) and they will not be retrieved using DNS (No luck with getaddrinfo). The problem is, the sockaddr_in6 structure that I'm supposed to fill out is completely different on different platforms.
If there a good portable way to connect to an IPv6 address from the raw address bytes?
I should also mention that I am using libevent also.