[FOLD] Split peer connect logic
[FOLD] Add ZeroCopyOutputStream