update unix socket sample code