socket stream is not a ptr