Sliding Window Protocol Java Program

Permalink

Join GitHub today

Sliding window protocol 0 Answer(s) 5 years ago Posted in: Swing AWT. Will anybody send me the code to make sliding window protocol animation using java swings. I have to do project with all types sliding protocols such as selectiverepeat,gobackN.etc. Java program for sliding window protocol //sender program. Stop & wait protocol using sockets in java; 82. Soal ujian sekolah sd. Java program for sliding window protocol.

Sacred blaze english patch. GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.

Sign up
Branch:master
Find file Copy path
Cannot retrieve contributors at this time
importjavax.swing.Timer;
importjava.awt.event.*;
/********************************************************************
This class is used to implement the acknowledgement timer that
is used to decide if a separate acknowledgement frame should be
sent if there is no reverse traffic.
*******************************************************************/
publicclassAcknowledgementTimer
{
privateTimer timer;
privateAcknowledgementTimerEventGenerator ateg;//the class to generate the associated timeout events for the SWE.
publicAcknowledgementTimer ( intmsec, SWEswe )
{
ateg =newAcknowledgementTimerEventGenerator (swe);
this.timer =newTimer (msec, ateg);
}
publicvoidstartTimer ( )
{
if ( timer.isRunning() )
//restarting if it is already running.
timer.restart();
else
//if it is not running, starting it.
timer.start();
}
publicvoidstopTimer ( )
{
//stopping the timer
timer.stop();
}
}
  • Copy lines
  • Copy permalink