0% found this document useful (0 votes)
5 views1 page

Java Frame Transmission Example

The document describes a program that takes user input of frame numbers, sends the frames over a connection, and resends a specific frame on request.

Uploaded by

raj
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

Java Frame Transmission Example

The document describes a program that takes user input of frame numbers, sends the frames over a connection, and resends a specific frame on request.

Uploaded by

raj
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

c=dis.

read();

Scanner sc=new Scanner([Link]);

a=new int[c];

[Link]("Enter "+c+" frames: ");

for(int i=0;i<c;i++){

a[i]=[Link]();

[Link](a[i]);

[Link]();

[Link]("The number of packets sent is:" + [Link]);

int y = [Link];

[Link](y);

[Link]();

int k = [Link]();

[Link]("Resending frame "+(k+1)+" again..");

f=a[k];

[Link](f);

[Link]();

[Link]("Quiting");

catch (IOException e) {

[Link](e);

finally {

try {

[Link]();

You might also like