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); }
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; }