P
PHLICS_Admin
Hi All,
Following code is used to set multicast interface :
IPAddress ipLan = IPAddress.Parse("...");
int iIP = (int)(ipLan.Address) ;
objMCastSender.SetSocketOption(SocketOptionLevel.IP,SocketOptionName.Multica
stInterface , iIP) ;
When the IP address is "192.168.0.231" , Overflow error occur. but if change
the code to:
IPAddress ipLan = IPAddress.Parse("...");
long iIP = (long)(ipLan.Address) ;
objMCastSender.SetSocketOption(SocketOptionLevel.IP,SocketOptionName.Multica
stInterface , iIP) ;
Another error occur: optionerror.
Would you please give me some advise about how to solve it .
Thanks,
Phlics
Following code is used to set multicast interface :
IPAddress ipLan = IPAddress.Parse("...");
int iIP = (int)(ipLan.Address) ;
objMCastSender.SetSocketOption(SocketOptionLevel.IP,SocketOptionName.Multica
stInterface , iIP) ;
When the IP address is "192.168.0.231" , Overflow error occur. but if change
the code to:
IPAddress ipLan = IPAddress.Parse("...");
long iIP = (long)(ipLan.Address) ;
objMCastSender.SetSocketOption(SocketOptionLevel.IP,SocketOptionName.Multica
stInterface , iIP) ;
Another error occur: optionerror.
Would you please give me some advise about how to solve it .
Thanks,
Phlics