diff options
author | fcolin | 2007-02-01 09:51:51 +0000 |
---|---|---|
committer | fcolin | 2007-02-01 09:51:51 +0000 |
commit | 56639239defc77c52180ef44d4c6a06ae14a04aa (patch) | |
tree | 8bf81bd8666cbe354b4e201fbbb9cc9ef1ea27e0 | |
parent | 429bea3eaa10e056add6bf8657ae24063fc40c26 (diff) | |
download | ivy-csharp-56639239defc77c52180ef44d4c6a06ae14a04aa.zip ivy-csharp-56639239defc77c52180ef44d4c6a06ae14a04aa.tar.gz ivy-csharp-56639239defc77c52180ef44d4c6a06ae14a04aa.tar.bz2 ivy-csharp-56639239defc77c52180ef44d4c6a06ae14a04aa.tar.xz |
Utilisateur : Fcolin Date : 6/02/06 Heure : 18:31 Archivé dans $/CSharp/Ivy/IvyPPC Commentaire: (vss 18)
-rw-r--r-- | CSharp/Ivy/Ivy/IvyWatcher.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CSharp/Ivy/Ivy/IvyWatcher.cs b/CSharp/Ivy/Ivy/IvyWatcher.cs index 31fb072..0a01ed6 100644 --- a/CSharp/Ivy/Ivy/IvyWatcher.cs +++ b/CSharp/Ivy/Ivy/IvyWatcher.cs @@ -62,7 +62,8 @@ namespace IvyBus //test isMulticastAddress // TODO better check
//if ( group.IsIPv6Multicast ) yes but in IPV4 how to do
- if ((group.Address & 0xf0000000) == 0xe0000000)
+ byte[] addr = group.GetAddressBytes();
+ if ((addr[0] & 0xf0) == 0xe0)
{
broadcast.SetSocketOption(SocketOptionLevel.Udp, SocketOptionName.AddMembership, new MulticastOption( group ));
}
@@ -100,6 +101,7 @@ namespace IvyBus stream.receiveMsg(out remoteEP, out version,out port,out appId,out appName);
IPAddress remotehost = remoteEP.Address;
+ //TODO remove ALL reverse DNS search !!!!
traceDebug("BUSWATCHER Receive Broadcast from " + Dns.GetHostEntry(remotehost).HostName + ":" + remoteEP.Port);
//TODO if ( !isInDomain( remotehost ) ) continue;
|