TftpShutdown - (System.in)); try{ s= in.readLine();//...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.io.*; import java.net.*; import java.lang.Byte; import java.lang.Integer; i public class TftpShutdown extends Thread { p TFTPserver server; String s; public TftpShutdown(TFTPserver server, String na){ super(na); this.server=server; s=null; } public void run(){ while (true){ BufferedReader in = new BufferedReader(new InputStreamReader
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: (System.in)); try{ s= in.readLine();// convert the buffer to string }catch(IOException e){} } if (s.equalsIgnoreCase("end")){ server.setTerminate(); System.out.println("no more requests will be accepted"); break; } } } }...
View Full Document

Ask a homework question - tutors are online