public void talk() throws IOException {
		try {
			PrintWriter pw = getWriter(socket);
			this.lb = new BufferedReader(new InputStreamReader(System.in));
			String msg = null;
			
			while(true){
				if((msg = this.lb.readLine())!=null){
					pw.println(msg);
					if(msg.equals("bye")){
						break;
					}
				}		
			}
		}catch(IOException e) {
			e.printStackTrace();
		}finally{
			try{
				socket.close();
			}catch(IOException e){
				e.printStackTrace();
			}
		}
	}