Pretty incoming and outgoing stream processing; client connection implementation