simplify common functions
simplify the basic socket sample
common files
test case
simplify socket, select and async select