MCPcopy Create free account
hub / github.com/COVESA/vsomeip / print_help

Function print_help

tools/vsomeip_ctrl/vsomeip_ctrl.cpp:278–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276} // namespace vsomeip_ctrl
277
278static 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
296int main(int argc, char** argv) {
297 if (argc < 2) {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected