Ejemplo n.º 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();
 }
Ejemplo n.º 2
0
 public Chunk[] respond(SCTPStream a)
 {
     Logger.Debug("in respond() for a opened stream " + a.getLabel());
     return(null);
 }