socket sample