Exemplo n.º 1
0
 /// <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");
 }
Exemplo n.º 2
0
 /// <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());
 }
Exemplo n.º 3
0
 protected virtual void OnReceiveAssociateReject(DcmRejectResult result, DcmRejectSource source, DcmRejectReason reason)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 4
0
 protected override void OnReceiveAssociateReject(DcmRejectResult result, DcmRejectSource source, DcmRejectReason reason)
 {
     _closedOnError = true;
     Close();
 }
Exemplo n.º 5
0
 /// <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;
 }
Exemplo n.º 6
0
 protected override void OnReceiveAssociateReject(DcmRejectResult result, DcmRejectSource source, DcmRejectReason reason)
 {
     _closedOnError = true;
     Close();
 }
Exemplo n.º 7
0
Arquivo: PDU.cs Projeto: hide1980/mdcm
 /// <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");
 }
Exemplo n.º 8
0
Arquivo: PDU.cs Projeto: hide1980/mdcm
 /// <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;
 }