public void run(){
            String line;
            try{
	    is = new DataInputStream(socket.getInputStream());
	    os = new PrintStream(socket.getOutputStream());
            SimpleSet temp = new SimpleSet();temp.put("connected", "true");
            composeResponse(temp,os);

	    while (true) {
		line = is.readLine();
                if(!deparseProtocol(line)) break;
	    }

	    for(int i=0; i<=max_clients; i++)
		if (t[i]==this) t[i]=null;
            
	    is.close();
	    os.close();
	    socket.close();
            }catch(IOException e){};
        }