Java MulticastSocket setInterface , setLoopbackMode to c#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

How to convert java code that use those MulticastSocket setInterface and
setLoopbackMode methods to C# ?

Thanks.
 
Yaron,

I can't be positive, but I assume that the setInterface method on a
multicast socket in java indicates which local network interface you want to
bind to. The equivalent in .NET would be to call the Bind method on the
socket, passing the local end point to the method which represents the
interface you want to use.

As for setting the loopback mode, you would make a call to the
SetSocketOption method on the socket class, passing
SocketOptionName.UseLoopback.

Hope this helps.
 
Back
Top