Ejemplo n.º 1
0
 private void onMessageGenerated(IBsmMessage message)
 {
     if (MessageGenerated != null)
     {
         MessageGenerated(this, new BsmMessageGeneratedEventArgs(message));
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Add a BSM Message to the Bundler.  The Bundler will transmit automatically.
        /// </summary>
        /// <param name="data">Memory Representation of BSM Message</param>
        public void AddBsmMessage(IBsmMessage data)
        {
            lock (bundleLock)
            {
                //Fill ONLY if there is room in the bundle
                if (bsmBundle.Count() < BundleMaxSize)
                {
                    bundleTimeoutTimer.Start();
                    bsmBundle.Add(data);

                    if (bsmBundle.Count() >= BundleMaxSize)
                    {
                        SendBundle();
                    }
                }
                else /* Drop Strategy */ } {
        }
    }
Ejemplo n.º 3
0
 public BsmMessageGeneratedEventArgs(IBsmMessage message)
 {
     Message = message;
 }