G
Guest
I am using Dual Mode Sockets on Vista - runs fine so far...
I have used the information provided in this article =>
http://blogs.msdn.com/wndp/archive/...ic-applications-part-2-dual-mode-sockets.aspx
So I have the following code in my App.
System.Net.IPEndPoint localEndPoint = new
System.Net.IPEndPoint(System.Net.IPAddress.IPv6Any, 5120);
System.Net.Sockets.Socket listener = new
System.Net.Sockets.Socket(System.Net.Sockets.AddressFamily.InterNetworkV6,
System.Net.Sockets.SocketType.Stream, System.Net.Sockets.ProtocolType.Tcp);
listener.SetSocketOption(System.Net.Sockets.SocketOptionLevel.IPv6,
(System.Net.Sockets.SocketOptionName)27, 0);
Never figured out what '27' as SocketOptions mean - just used the Code in
the article of the link above...
Works great on Vista (tested on x86 Business), but when I run the App. under
WinXP (SP2), I get an error with this SocketOption !!
I have installed IPv6 support (installed the Protocol via
ControlPanel->Networking, selected my NIC and Properties, clicked 'install'
and added the IPv6 protocol), but I don't know if there is something more to
do (configure?) - I cannot click on Properties when the IPv6 Protocol is
selected in the NIC's properties dialog!
Questions: why doesn't this code work under XP? do I have to configure
(bind?) the IPv6 protocol to IPv4 (I think this is automatically done on
Vista?!) and how?
Thank you in advance,
Robert
I have used the information provided in this article =>
http://blogs.msdn.com/wndp/archive/...ic-applications-part-2-dual-mode-sockets.aspx
So I have the following code in my App.
System.Net.IPEndPoint localEndPoint = new
System.Net.IPEndPoint(System.Net.IPAddress.IPv6Any, 5120);
System.Net.Sockets.Socket listener = new
System.Net.Sockets.Socket(System.Net.Sockets.AddressFamily.InterNetworkV6,
System.Net.Sockets.SocketType.Stream, System.Net.Sockets.ProtocolType.Tcp);
listener.SetSocketOption(System.Net.Sockets.SocketOptionLevel.IPv6,
(System.Net.Sockets.SocketOptionName)27, 0);
Never figured out what '27' as SocketOptions mean - just used the Code in
the article of the link above...
Works great on Vista (tested on x86 Business), but when I run the App. under
WinXP (SP2), I get an error with this SocketOption !!
I have installed IPv6 support (installed the Protocol via
ControlPanel->Networking, selected my NIC and Properties, clicked 'install'
and added the IPv6 protocol), but I don't know if there is something more to
do (configure?) - I cannot click on Properties when the IPv6 Protocol is
selected in the NIC's properties dialog!
Questions: why doesn't this code work under XP? do I have to configure
(bind?) the IPv6 protocol to IPv4 (I think this is automatically done on
Vista?!) and how?
Thank you in advance,
Robert