A socket sample