basic socket demo