Ignore:
Timestamp:
May 17, 2010, 5:48:39 PM (12 years ago)
Author:
Paul Lelgemann
Message:

+ PeerToPeerBaseProxy: events are handled now, but functionality for stopping the workspace still missing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypP2P/Internal/P2PBase.cs

    r1433 r1436  
    358358                 * ATTENTION: This could change the invocation order!!! In my case
    359359                              no problem, but maybe in future cases... */
    360                 OnP2PMessageReceived.BeginInvoke(pid, e.Message.Data.PopBytes(e.Message.Data.CurrentStackSize), null, null);
     360
     361                // TODO: not safe: The delegate must have only one target
     362                //OnP2PMessageReceived.BeginInvoke(pid, e.Message.Data.PopBytes(e.Message.Data.CurrentStackSize), null, null);
     363
     364                foreach (Delegate del in OnP2PMessageReceived.GetInvocationList())
     365                {
     366                    del.DynamicInvoke(pid, e.Message.Data.PopBytes(e.Message.Data.CurrentStackSize));
     367                }
     368
    361369                //OnP2PMessageReceived(pid, e.Message.Data.PopUTF8String());
    362370            }
Note: See TracChangeset for help on using the changeset viewer.