add some example about socket
and remove some fun from lib_misc, because the different between windows and linux.