MengRao/tcpshm

BUG report

Closed this issue · 1 comments

echo_client.cc
        send_num = my_mmap<int>(send_num_file.c_str(), false, &error_msg);
        recv_num = my_mmap<int>(recv_num_file.c_str(), false, &error_msg);

may be

        send_num = my_mmap<int>(send_num_file.c_str(), use_shm, &error_msg);
        recv_num = my_mmap<int>(recv_num_file.c_str(), use_shm, &error_msg);

send_num and recv_num are numbers mmap-ed to local files, so false means to use normal file instead of a shared memory file.