From 9faf3708bd1188de84ccf33c400bfdceefc7fd1b Mon Sep 17 00:00:00 2001 From: fcolin Date: Mon, 5 Feb 2007 09:03:07 +0000 Subject: maintenance SVN /sourceSafe --- Ivy/Ivy.cs | 18 +++++++++--------- IvyPPC/IvyWatcher.cs | 2 +- IvyPerf/IvyPerf.cs | 4 +--- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/Ivy/Ivy.cs b/Ivy/Ivy.cs index 1c38396..428da49 100644 --- a/Ivy/Ivy.cs +++ b/Ivy/Ivy.cs @@ -41,21 +41,21 @@ namespace IvyBus public class Ivy : System.ComponentModel.Component, ISupportInitialize { /* Event */ - /// fires when a new client connect to the bus + [Description("Occurs when a new client connect to the bus")] public event EventHandler ClientConnected; - /// fires when a client discconnect from the bus + [Description("Occurs when a client discconnect from the bus")] public event EventHandler ClientDisconnected; - /// fires when a client receive a direct message from another client + [Description("Occurs when a client receive a direct message from another client")] public event EventHandler DirectMessageReceived; - /// fires when somebody ask for killing every client on the bus + [Description("Occurs when somebody ask for killing every client on the bus")] public event EventHandler DieReceived; - /// fires when a client receive a add binding from another client + [Description("Occurs when a client receive a add binding from another client")] public event EventHandler BindingAdd; - /// fires when a client receive a remove binding from another client + [Description("Occurs when a client receive a remove binding from another client")] public event EventHandler BindingRemove; - /// fires when a client receive a binding from another client and it as been filtered + [Description("Occurs when a client receive a binding from another client and it as been filtered ")] public event EventHandler BindingFilter; - /// fires when a client receive a remove binding from another client + [Description("Occurs when a client receive a remove binding from another client")] public event EventHandler ErrorMessage; #if (!PocketPC) @@ -270,7 +270,7 @@ namespace IvyBus private volatile Thread serverThread; // to ensure quick communication of the end internal Dictionary bindings; - //TODO should be remove samve as above + //TODO should be remove same as above private List app_bindings; private List clients; private List sent_messageFilter; diff --git a/IvyPPC/IvyWatcher.cs b/IvyPPC/IvyWatcher.cs index 5a3afc8..092de81 100644 --- a/IvyPPC/IvyWatcher.cs +++ b/IvyPPC/IvyWatcher.cs @@ -63,7 +63,7 @@ namespace IvyBus byte[] addr = group.GetAddressBytes(); if ((addr[0] & 0xf0) == 0xe0) { - broadcast.SetSocketOption(SocketOptionLevel.IP, SocketOptionName.AddMembership, new MulticastOption( group )); + broadcast.SetSocketOption(SocketOptionLevel.Udp, SocketOptionName.AddMembership, new MulticastOption( group )); } // TODO support the Two protocol if (bus.protocolVersion == 4) diff --git a/IvyPerf/IvyPerf.cs b/IvyPerf/IvyPerf.cs index 9d37883..25afd6a 100644 --- a/IvyPerf/IvyPerf.cs +++ b/IvyPerf/IvyPerf.cs @@ -52,10 +52,8 @@ namespace IvyPerf bus.SentMessageFilter.Add("pong"); bus.SentMessageFilter.Add("IvyPref"); bus.BindingFilter += new EventHandler(bus_BindingFilter); - //TODO how to autobind - //bus.BindAttibute(typeof(IvyPerf)); //TODO auto generation of testtarget ?? how to - //bus.BindMsg("test", new EventHandler(testtarget)); + //bus.BindMsg("test", testtarget); bus.Start(null); origin = currentTime(); while( true ) -- cgit v1.1