/// <summary> /// Reads A-ASSOCIATE-RJ from PDU buffer /// </summary> /// <param name="raw">PDU buffer</param> public void Read(RawPDU raw) { raw.ReadByte("Reserved"); _rt = (DcmRejectResult)raw.ReadByte("Result"); _so = (DcmRejectSource)raw.ReadByte("Source"); _rn = (DcmRejectReason)raw.ReadByte("Reason"); }
/// <summary> /// The UL service-provider may not be capable of supporting the requested /// association. In this situation, it shall return an A-ASSOCIATE confirmation /// primitive to the requestor with an appropriate Result parameter (rejected). The /// Result Source parameter shall be appropriately assigned either the symbolic value /// of “UL service-provider (ACSE related function)” or “UL service-provider /// (Presentation related function).” The indication primitive shall not be issued. /// The association shall not be established. /// </summary> /// <param name="result"></param> /// <param name="source"></param> /// <param name="reason"></param> protected void SendAssociateReject(DcmRejectResult result, DcmRejectSource source, DcmRejectReason reason) { Log.Info("{0} -> Association reject [result: {1}; source: {2}; reason: {3}]", LogID, result, source, reason); AAssociateRJ pdu = new AAssociateRJ(result, source, reason); SendRawPDU(pdu.Write()); }
protected virtual void OnReceiveAssociateReject(DcmRejectResult result, DcmRejectSource source, DcmRejectReason reason) { throw new NotImplementedException(); }
protected override void OnReceiveAssociateReject(DcmRejectResult result, DcmRejectSource source, DcmRejectReason reason) { _closedOnError = true; Close(); }
/// <summary> /// Initializes new A-ASSOCIATE-RJ /// </summary> /// <param name="rt">Rejection result</param> /// <param name="so">Rejection source</param> /// <param name="rn">Rejection reason</param> public AAssociateRJ(DcmRejectResult rt, DcmRejectSource so, DcmRejectReason rn) { _rt = rt; _so = so; _rn = rn; }