Dual Socket for Windows

On Unix, you can use a single socket, used for both IPv6 and IPv4 (dual mode). In windows this is not supported. Does anyone have a solution to implement the same with the same socket for Windows.

+3
source share
2 answers

Check out http://msdn.microsoft.com/en-us/library/bb513665(VS.85).aspx :

Dual stack connectors

To support both IPv4 and IPv6 in Windows XP Service Pack 1 (SP1) and Windows Server 2003, the application must create two sockets, one socket for use with IPv4 and one socket for use with IPv6 . These two sockets must be handled separately by the application.

Windows Vista IPv6, IPv6, IPv4. , TCP IPv6 , 5001. TCP- IPv6, 5001, TCP- IPv4, 5001. , .

+5

.NET Framework 4.5 .

0

Source: https://habr.com/ru/post/1729374/


All Articles