ServerSocket server = new ServerSocket(20334);
while(true) {
final Socket socket = server.accept();
new Thread() {
public void run() {
try {
BufferedReader br = new BufferedReader(new InputStreamReader(socket.getInputStream()));
PrintStream ps;
ps = new PrintStream(socket.getOutputStream());
File dir = new File("update");
File file = new File(dir,br.readLine());
int len = 0;
BufferedInputStream bis = new BufferedInputStream(socket.getInputStream());
BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(file));
BufferedInputStream bis = new BufferedInputStream(new FileInputStream(scanner.nextLine())) ;
BufferedOutputStream bos = new BufferedOutputStream(socket.getOutputStream());
int len = 0;