Lines Matching full:service
23 COAP_SERVICE_FOREACH(service) { in cmd_list()
27 service->name, in cmd_list()
28 service->data->sock_fd < 0 ? "INACTIVE" : "ACTIVE", in cmd_list()
29 service->host != NULL ? service->host : "", in cmd_list()
30 *service->port); in cmd_list()
46 shell_error(sh, "Usage: start <service>"); in cmd_start()
50 COAP_SERVICE_FOREACH(service) { in cmd_start()
51 if (strcmp(argv[1], service->name) == 0) { in cmd_start()
52 ret = coap_service_start(service); in cmd_start()
58 shell_error(sh, "Failed to start service (%d)", ret); in cmd_start()
69 shell_error(sh, "Usage: stop <service>"); in cmd_stop()
73 COAP_SERVICE_FOREACH(service) { in cmd_stop()
74 if (strcmp(argv[1], service->name) == 0) { in cmd_stop()
75 ret = coap_service_stop(service); in cmd_stop()
81 shell_error(sh, "Failed to stop service (%d)", ret); in cmd_stop()
89 "Start a CoAP Service\n"
90 "Usage: start <service>",
93 "Stop a CoAP Service\n"
94 "Usage: stop <service>",
98 SHELL_CMD_REGISTER(coap_service, &sub_coap_service, "CoAP Service commands", cmd_list);