public SynchronousSegment(int sequenceNumber, Parameter parameter) : this(sequenceNumber, parameter.MaxNumberOfOutStandingSegs, parameter.MaxSegmentSize, parameter.RetransmissionTimeout, parameter.CumulativeAckTimeout, parameter.NullSegmentTimeout, parameter.MaxRetransmission, parameter.MaxCumulativeAck, parameter.MaxOutOfSequence, parameter.MaxAutoReset) { }
/// <summary> /// コンストラクタ. /// </summary> /// <param name="udp"></param> /// <param name="parameter"></param> public ReliableUDP( UdpClient udp, Parameter parameter) { this.Udp = udp; this.Parameter = parameter; // セグメントの受信は別スレッドで受け取る. this.RecieveThread = new Thread(ProcRecieve); this.RecieveThread.Start(); //this.RetransWorker = new TimerWorker(ProcRetransmit); }