summaryrefslogtreecommitdiff
path: root/CSharp
diff options
context:
space:
mode:
authorfcolin2007-02-01 10:03:40 +0000
committerfcolin2007-02-01 10:03:40 +0000
commit1e0f9a50c2d0c61e9bd2cc90a2589b7166b6cc1b (patch)
tree0feb0dd3c213e2e47bc3794cb86d85baef0c1af6 /CSharp
parent49c18dcbe58730bc077b0ccf6d3b473b23f6e018 (diff)
downloadivy-csharp-1e0f9a50c2d0c61e9bd2cc90a2589b7166b6cc1b.zip
ivy-csharp-1e0f9a50c2d0c61e9bd2cc90a2589b7166b6cc1b.tar.gz
ivy-csharp-1e0f9a50c2d0c61e9bd2cc90a2589b7166b6cc1b.tar.bz2
ivy-csharp-1e0f9a50c2d0c61e9bd2cc90a2589b7166b6cc1b.tar.xz
Utilisateur : Fcolin Date : 6/02/06 Heure : 18:31 Archivé dans $/CSharp/Ivy/IvyPPC Commentaire: (vss 18)
Diffstat (limited to 'CSharp')
-rw-r--r--CSharp/Ivy/IvyPPC/IvyWatcher.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/CSharp/Ivy/IvyPPC/IvyWatcher.cs b/CSharp/Ivy/IvyPPC/IvyWatcher.cs
index 31fb072..0a01ed6 100644
--- a/CSharp/Ivy/IvyPPC/IvyWatcher.cs
+++ b/CSharp/Ivy/IvyPPC/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;