refactor message send method in tcper for project test