getAll function for select() based connections implemented