| 276 | } // namespace vsomeip_ctrl |
| 277 | |
| 278 | static void print_help(char* binary_name) { |
| 279 | std::cout << "Usage example:" << std::endl; |
| 280 | std::cout << binary_name << " --instance 5678 " |
| 281 | << "--message 123480e800000015134300030100000000000009efbbbf576f726c6400\n" |
| 282 | << "This will send a message to service with service id 1234 and instance 5678." << std::endl |
| 283 | << std::endl; |
| 284 | std::cout << "Available options:\n" |
| 285 | "--help | -h : print this help\n" |
| 286 | "--instance | -i : instance id of target service in hex (required)\n" |
| 287 | "--tcp | -t : flag to enable sending over TCP, default off (= UDP)\n" |
| 288 | "--message | -m : vSomeIP message to send in hex (required)\n\n" |
| 289 | "Please note: the fields client id and session id in the provided message\n" |
| 290 | "will be overwritten by the stack with the required values\n" |
| 291 | "Please further make sure to use the same configuration file\n" |
| 292 | "as the target service, if the system is not using routingmanagerd" |
| 293 | << std::endl; |
| 294 | } |
| 295 | |
| 296 | int main(int argc, char** argv) { |
| 297 | if (argc < 2) { |