Example #1
0
 /// <summary>
 /// Reads A-ABORT from PDU buffer
 /// </summary>
 /// <param name="raw">PDU buffer</param>
 public void Read(RawPDU raw)
 {
     raw.ReadByte("Reserved");
     raw.ReadByte("Reserved");
     _s = (DcmAbortSource)raw.ReadByte("Source");
     _r = (DcmAbortReason)raw.ReadByte("Reason");
 }
Example #2
0
 /// <summary>
 /// The ACSE A-ABORT service shall be used by a requestor in either of the AEs 
 /// to cause the abnormal release of the association. It shall be a non-confirmed 
 /// service. However, because of the possibility of an A-ABORT service procedure 
 /// collision, the delivery of the indication primitive is not guaranteed. Should
 /// such a collision occur, both AEs are aware that the association has been 
 /// terminated. The abort shall be performed through A-ABORT request and A-ABORT 
 /// indication primitives.
 /// </summary>
 /// <param name="source"></param>
 /// <param name="reason"></param>
 protected void SendAbort(DcmAbortSource source, DcmAbortReason reason)
 {
     Log.Info("{0} -> Abort [source: {1}; reason: {2}]", LogID, source, reason);
     AAbort pdu = new AAbort(source, reason);
     SendRawPDU(pdu.Write());
 }
Example #3
0
 protected virtual void OnReceiveAbort(DcmAbortSource source, DcmAbortReason reason)
 {
     throw new NotImplementedException();
 }
Example #4
0
 protected override void OnReceiveAbort(DcmAbortSource source, DcmAbortReason reason)
 {
     _closedOnError = true;
     Close();
 }
Example #5
0
 /// <summary>
 /// Initializes new A-ABORT
 /// </summary>
 /// <param name="source">Abort source</param>
 /// <param name="reason">Abort reason</param>
 public AAbort(DcmAbortSource source, DcmAbortReason reason)
 {
     _s = source; _r = reason;
 }
Example #6
0
 /// <summary>
 /// Initializes new A-ABORT
 /// </summary>
 public AAbort()
 {
     _s = DcmAbortSource.ServiceUser;
     _r = DcmAbortReason.NotSpecified;
 }
Example #7
0
 protected override void OnReceiveAbort(DcmAbortSource source, DcmAbortReason reason)
 {
     _closedOnError = true;
     Close();
 }
Example #8
0
File: PDU.cs Project: hide1980/mdcm
 /// <summary>
 /// Reads A-ABORT from PDU buffer
 /// </summary>
 /// <param name="raw">PDU buffer</param>
 public void Read(RawPDU raw)
 {
     raw.ReadByte("Reserved");
     raw.ReadByte("Reserved");
     _s = (DcmAbortSource)raw.ReadByte("Source");
     _r = (DcmAbortReason)raw.ReadByte("Reason");
 }
Example #9
0
File: PDU.cs Project: hide1980/mdcm
 /// <summary>
 /// Initializes new A-ABORT
 /// </summary>
 /// <param name="source">Abort source</param>
 /// <param name="reason">Abort reason</param>
 public AAbort(DcmAbortSource source, DcmAbortReason reason)
 {
     _s = source; _r = reason;
 }
Example #10
0
File: PDU.cs Project: hide1980/mdcm
 /// <summary>
 /// Initializes new A-ABORT
 /// </summary>
 public AAbort()
 {
     _s = DcmAbortSource.ServiceUser;
     _r = DcmAbortReason.NotSpecified;
 }