Lines Matching full:service
627 char *skip_host_serial(char *service) {
632 if (!strncmp(service, prefixes[i].str, prefixes[i].len))
633 return strchr(service + prefixes[i].len, ':');
636 first_colon = strchr(service, ':');
638 /* No colon in service string. */
659 char *service = NULL;
705 service = (char *)p->data + 4;
706 if(!strncmp(service, "host-serial:", strlen("host-serial:"))) {
708 service += strlen("host-serial:");
711 serial_end = skip_host_serial(service);
714 serial = service;
715 service = serial_end + 1;
717 } else if (!strncmp(service, "host-usb:", strlen("host-usb:"))) {
719 service += strlen("host-usb:");
720 } else if (!strncmp(service, "host-local:", strlen("host-local:"))) {
722 service += strlen("host-local:");
723 } else if (!strncmp(service, "host:", strlen("host:"))) {
725 service += strlen("host:");
727 service = NULL;
730 if (service) {
738 if(handle_host_request(service, ttype, serial, s->peer->fd, s) == 0) {
740 D( "SS(%d): handled host service '%s'\n", s->id, service );
743 if (!strncmp(service, "transport", strlen("transport"))) {
749 /* try to find a local service with this name.
750 ** if no such service exists, we'll fail out
753 s2 = create_host_service_socket(service, serial);
755 D( "SS(%d): couldn't create host service '%s'\n", s->id, service );
756 sendfailmsg(s->peer->fd, "unknown host service");
760 /* we've connected to a local host service,
763 ** service socket, acknowledge the successful