implemented mmap_client.