//SENDER PROGRAM
import java.io.*;
import
java.net.*;
public class Sender{
Socket
sender;
ObjectOutputStream
out;
ObjectInputStream
in;
String
packet,ack,str, msg;
int
n,i=0,sequence=0;
Sender(){}
public void
run(){
try{
BufferedReader
br=new BufferedReader(new InputStreamReader(System.in));
System.out.println("Waiting
for Connection....");
sender
= new Socket("localhost",2004);
sequence=0;