Lines Matching refs:service
598 char *skip_host_serial(char *service) {
601 first_colon = strchr(service, ':');
603 /* No colon in service string. */
624 char *service = NULL;
670 service = (char *)p->data + 4;
671 if(!strncmp(service, "host-serial:", strlen("host-serial:"))) {
673 service += strlen("host-serial:");
676 serial_end = skip_host_serial(service);
679 serial = service;
680 service = serial_end + 1;
682 } else if (!strncmp(service, "host-usb:", strlen("host-usb:"))) {
684 service += strlen("host-usb:");
685 } else if (!strncmp(service, "host-local:", strlen("host-local:"))) {
687 service += strlen("host-local:");
688 } else if (!strncmp(service, "host:", strlen("host:"))) {
690 service += strlen("host:");
692 service = NULL;
695 if (service) {
703 if(handle_host_request(service, ttype, serial, s->peer->fd, s) == 0) {
705 D( "SS(%d): handled host service '%s'\n", s->id, service );
708 if (!strncmp(service, "transport", strlen("transport"))) {
714 /* try to find a local service with this name.
715 ** if no such service exists, we'll fail out
718 s2 = create_host_service_socket(service, serial);
720 D( "SS(%d): couldn't create host service '%s'\n", s->id, service );
721 sendfailmsg(s->peer->fd, "unknown host service");
725 /* we've connected to a local host service,
728 ** service socket, acknowledge the successful