summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Ivy/Ivy.cs18
-rw-r--r--IvyPPC/IvyWatcher.cs2
-rw-r--r--IvyPerf/IvyPerf.cs4
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 */
- /// <summary>fires when a new client connect to the bus</summary>
+ [Description("Occurs when a new client connect to the bus")]
public event EventHandler<IvyEventArgs> ClientConnected;
- /// <summary>fires when a client discconnect from the bus</summary>
+ [Description("Occurs when a client discconnect from the bus")]
public event EventHandler<IvyEventArgs> ClientDisconnected;
- /// <summary>fires when a client receive a direct message from another client</summary>
+ [Description("Occurs when a client receive a direct message from another client")]
public event EventHandler<IvyEventArgs> DirectMessageReceived;
- /// <summary>fires when somebody ask for killing every client on the bus</summary>
+ [Description("Occurs when somebody ask for killing every client on the bus")]
public event EventHandler<IvyDieEventArgs> DieReceived;
- /// <summary>fires when a client receive a add binding from another client</summary>
+ [Description("Occurs when a client receive a add binding from another client")]
public event EventHandler<IvyEventArgs> BindingAdd;
- /// <summary>fires when a client receive a remove binding from another client</summary>
+ [Description("Occurs when a client receive a remove binding from another client")]
public event EventHandler<IvyEventArgs> BindingRemove;
- /// <summary>fires when a client receive a binding from another client and it as been filtered </summary>
+ [Description("Occurs when a client receive a binding from another client and it as been filtered ")]
public event EventHandler<IvyEventArgs> BindingFilter;
- /// <summary>fires when a client receive a remove binding from another client</summary>
+ [Description("Occurs when a client receive a remove binding from another client")]
public event EventHandler<IvyEventArgs> ErrorMessage;
#if (!PocketPC)
@@ -270,7 +270,7 @@ namespace IvyBus
private volatile Thread serverThread; // to ensure quick communication of the end
internal Dictionary<int, IvyApplicationBinding> bindings;
- //TODO should be remove samve as above
+ //TODO should be remove same as above
private List<IvyApplicationBinding> app_bindings;
private List<IvyClient> clients;
private List<string> 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<IvyEventArgs>(bus_BindingFilter);
- //TODO how to autobind
- //bus.BindAttibute(typeof(IvyPerf));
//TODO auto generation of testtarget ?? how to
- //bus.BindMsg("test", new EventHandler<IvyMessageEventArgs>(testtarget));
+ //bus.BindMsg("test", testtarget);
bus.Start(null);
origin = currentTime();
while( true )