Base async network and stream classes