import java.io.*; import java.net.*; import java.util.Vector; public class Jututuba2{ static Vector kasutajad=new Vector(); public static void main(String argumendid[]) throws IOException{ ServerSocket ss=new ServerSocket(3001); while(true){ kasutajad.add(new Loim(ss.accept())); } } static class Loim extends Thread{ protected Socket sc; PrintWriter valja; String kasutajanimi; public Loim(Socket uus_sc){ try{ sc=uus_sc; valja=new PrintWriter(sc.getOutputStream(), true); start(); }catch(Exception e){e.printStackTrace();} } public void run(){ try{ BufferedReader sisse=new BufferedReader( new InputStreamReader(sc.getInputStream()) ); boolean veel=true; while(veel){ String rida=sisse.readLine(); System.out.println(rida); if(rida.startsWith(".ots"))veel=false; for(int i=0; i