remote_thr.cpp which sends message counter in buffer