Improved socket buffer capture and output. v. 0.15.

Changed socket buffer capture and output syntax to conform with better
coding practices. v. 0.15.