added socket examples and client test script for it