socket stream buffer class updates