socket communicaton demo