public List<Room> getRooms() {
                Packet pak = new PacketImpl(Packet.RETRIEVE);
                connection.send(pak);
                Packet rec = connection.recv();
                List<Room> res = new LinkedList<Room>();
                for (String s : rec.getParameters()) {
                        String[] d = s.split(Connection.SEPARATOR);
                        Room r = new Room(d[0]);
                        r.setNumberOfSubscribers(Integer.parseInt(d[1]));
                        res.add(r);
                }
                return res;
        }