practical examples of the use of socketstream.