Brad Brad - 1 year ago 174
C++ Question

sockaddr_in6 not declared?

I'm trying to port an ipv4 server/client to ipv6, but the compiler says

is not declared in the scope.
is declared but not
is included.

Any one have any ideas why it would be undeclared?

sth sth
Answer Source

Microsoft's documentation for sockaddr_in6 says that it is defined in the ws2tcpip.h header, probably you need to include that.

On Linux you'd need different includes, sys/socket.h and netinet/in.h.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download