Exemplo n.º 1
0
 private void FireWrite(PduI pdu)
 {
     if (pdu is PDataTF)
     {
         if (log.IsDebugEnabled)
         {
             log.Debug("sending " + pdu);
         }
     }
     else
     {
         if (log.IsInfoEnabled)
         {
             log.Info("sending " + pdu.ToString(log.IsDebugEnabled));
         }
     }
     if (assocListener != null)
         assocListener.Write(assoc, pdu);
 }
Exemplo n.º 2
0
 private PduI FireReceived(PduI pdu)
 {
     if (pdu is PDataTF)
     {
         if (log.IsDebugEnabled)
         {
             log.Debug("received " + pdu);
         }
     }
     else
     {
         if (log.IsInfoEnabled)
         {
             log.Info("received " + pdu.ToString(log.IsDebugEnabled));
         }
     }
     if (assocListener != null)
         assocListener.Received(assoc, pdu);
     return pdu;
 }