public static void communicate(SSLSocket socket) throws IOException{
	
		Scanner read = new Scanner(System.in);
        PrintWriter out = new PrintWriter(socket.getOutputStream(), true);
        BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
		try{
        String msg;
        boolean finished = false;
        System.out.println("Enter a command, type 'help' for a commandlist, type 'quit' to logout:");
		while(!finished) {
			
            System.out.print(">");
            msg = read.nextLine();
            if (msg.equalsIgnoreCase("quit")) {
			    finished=true;
			}else if(msg.equalsIgnoreCase("help")){
				writeHelp();
			}
            else{
            	out.println(msg);
            	out.flush();
            	char ch;
            	StringBuilder sb = new StringBuilder();
            	while((ch = (char) in.read())!= 0) sb.append(ch);
            	System.out.println(sb);
			}
        }
		}catch(Exception e){
			System.out.println("Something went wrong! Faulty Termination?");
			
		}
		in.close();
		out.close();
		read.close();
	
	
		
	}