public static void main(String[] args) { AckMcastReceiverWindow win=new AckMcastReceiverWindow(); Address sender1=new IpAddress("janet", 1111); Address sender2=new IpAddress("janet", 4444); Address sender3=new IpAddress("janet", 6767); Address sender4=new IpAddress("janet", 3333);
public static void main(String[] args) throws UnknownHostException { AckMcastReceiverWindow win=new AckMcastReceiverWindow(); Address sender1=new IpAddress("janet", 1111); Address sender2=new IpAddress("janet", 4444); Address sender3=new IpAddress("janet", 6767); Address sender4=new IpAddress("janet", 3333);
    public static void main(String[] args) {	AckMcastReceiverWindow win=new AckMcastReceiverWindow();	Address sender1=new IpAddress("janet", 1111);	Address sender2=new IpAddress("janet", 4444);	Address sender3=new IpAddress("janet", 6767);	Address sender4=new IpAddress("janet", 3333);	win.add(sender1, 1);	win.add(sender1, 2);	win.add(sender3, 2);	win.add(sender2, 2);	win.add(sender4, 2);	win.add(sender1, 3);	win.add(sender1, 2);	System.out.println(win);	win.suspect(sender1);	System.out.println(win);	win.add(sender1, 1);	win.add(sender1, 2);	win.add(sender1, 3);	win.add(sender1, 4);	win.add(sender1, 5);	win.add(sender1, 6);	win.add(sender1, 7);	win.add(sender1, 8);	System.out.println(win);	Vector seqnos=new Vector();	seqnos.addElement(new Long(4));	seqnos.addElement(new Long(6));	seqnos.addElement(new Long(8));	win.remove(sender2, seqnos);	System.out.println(win);	win.remove(sender1, seqnos);	System.out.println(win);    }