Пример #1
0
 public void deliver(SCTPStream s, SortedArray <DataChunk> a, SCTPStreamListener l)
 {
     Logger.Debug("in deliver() for stream " + s.getLabel() + " with " + a.Count + " chunks. ");
     // strictly this should be looking at flags etc, and bundling the result into a message
     foreach (DataChunk dc in a)
     {
         if (dc.getDCEP() != null)
         {
             Logger.Debug("in deliver() for a DCEP message " + dc.getDataAsString());
         }
         else
         {
             Logger.Debug("inbound data chunk is " + dc.ToString());
             l.onMessage(s, dc.getDataAsString());
         }
     }
     a.Clear();
 }
 /// <summary>
 /// Removes all frequencies and network parameter matrices from the collection.
 /// </summary>
 public void Clear()
 {
     networkParameters.Clear();
     frequencies.Clear();
 }