network: fix made to stream and stream client clases according to review
network: adjust test to modification
network: fix code violations in stream socket API