basic client and server using shared memory