ClientConnection(Socket s) throws IOException, ClassNotFoundException {
        //System.out.println("client connection");
        oIn = new ObjectInputStream(s.getInputStream());
        oOut = new ObjectOutputStream(s.getOutputStream());
        while (name == null) {
            Object o = oIn.readObject();
            System.out.println(o);
            if (o instanceof ChatPerson) {
                name = (ChatPerson) o;
            }
        }
        System.out.println("Client initialized");
    }