diff options
author | fcolin | 2007-02-05 09:03:07 +0000 |
---|---|---|
committer | fcolin | 2007-02-05 09:03:07 +0000 |
commit | 9faf3708bd1188de84ccf33c400bfdceefc7fd1b (patch) | |
tree | bd3b20d16db7be4d3e52c1dc3903125a7403fa5f | |
parent | 323d81860b443cac4d9367fa2efa8cae8028615f (diff) | |
download | ivy-csharp-9faf3708bd1188de84ccf33c400bfdceefc7fd1b.zip ivy-csharp-9faf3708bd1188de84ccf33c400bfdceefc7fd1b.tar.gz ivy-csharp-9faf3708bd1188de84ccf33c400bfdceefc7fd1b.tar.bz2 ivy-csharp-9faf3708bd1188de84ccf33c400bfdceefc7fd1b.tar.xz |
maintenance SVN /sourceSafe
-rw-r--r-- | Ivy/Ivy.cs | 18 | ||||
-rw-r--r-- | IvyPPC/IvyWatcher.cs | 2 | ||||
-rw-r--r-- | IvyPerf/IvyPerf.cs | 4 |
3 files changed, 11 insertions, 13 deletions
@@ -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 )
|