Introduce generic_recv_pre_select().