public virtual void Received(Association src, IPdu pdu) { a.Received(src, pdu); b.Received(src, pdu); }
public virtual void Received(Association src, IDimse dimse) { a.Received(src, dimse); b.Received(src, dimse); }
public virtual void Error(Association src, IOException ioe) { a.Error(src, ioe); b.Error(src, ioe); }
public virtual void Close(Association src) { a.Close(src); b.Close(src); }
public virtual void Write(Association src, IDimse dimse) { a.Write(src, dimse); b.Write(src, dimse); }
public virtual void Write(Association src, IPdu pdu) { a.Write(src, pdu); b.Write(src, pdu); }
/// <summary> /// Creates a new instance of DcmULService /// </summary> public Fsm(Association assoc, TcpClient s, bool requestor) { STA1 = new State1(this, AssociationState.IDLE); STA2 = new State2(this, AssociationState.AWAITING_READ_ASS_RQ); STA3 = new State3(this, AssociationState.AWAITING_WRITE_ASS_RP); STA4 = new State4(this, AssociationState.AWAITING_WRITE_ASS_RQ); STA5 = new State5(this, AssociationState.AWAITING_READ_ASS_RP); STA6 = new State6(this, AssociationState.ASSOCIATION_ESTABLISHED); STA7 = new State7(this, AssociationState.AWAITING_READ_REL_RP); STA8 = new State8(this, AssociationState.AWAITING_WRITE_REL_RP); STA9 = new State9(this, AssociationState.RCRS_AWAITING_WRITE_REL_RP); STA10 = new State10(this, AssociationState.RCAS_AWAITING_READ_REL_RP); STA11 = new State11(this, AssociationState.RCRS_AWAITING_READ_REL_RP); STA12 = new State12(this, AssociationState.RCAS_AWAITING_WRITE_REL_RP); STA13 = new State13(this, AssociationState.ASSOCIATION_TERMINATING); state = STA1; this.assoc = assoc; this.requestor = requestor; this.s = s; stream = s.GetStream(); Logger.Info(s.ToString()); ChangeState(requestor ? STA4 : STA2); }