use of socket instead of shared memory