Connect and listen flags