[프로그래밍] IPv4 주소를 IPv6 주소로 변환
#ifdef WIN32# pragma comment(lib, "ws2_32.lib")# include # include #else#endif #include /**@code RFC 3493 3.7 Compatibility with IPv4 Nodes The IPv4 address is encoded into the low-order 32 bits ofthe IPv6 address, and the high-order 96 bits hold the fixed prefix0:0:0:0:0:FFFF. IPv4-mapped addresses are written as follows: ::FFFF: @endcode*/struct in_addr6 IPv4ToIPv6(struct in_addr IPv4){ struct..