Lines Matching refs:host
426 static void connect_device(char* host, char* buffer, int buffer_size)
429 char* portstr = strchr(host, ':');
434 strncpy(hostbuf, host, sizeof(hostbuf) - 1);
436 if (portstr - host >= (ptrdiff_t)sizeof(hostbuf)) {
437 snprintf(buffer, buffer_size, "bad host name %s", host);
440 // zero terminate the host at the point we found the colon
441 hostbuf[portstr - host] = 0;
454 snprintf(buffer, buffer_size, "unable to connect to %s:%d", host, port);
530 char *host = cookie;
532 if (!strncmp(host, "emu:", 4)) {
533 connect_emulator(host + 4, buf, sizeof(buf));
535 connect_device(host, buf, sizeof(buf));
577 const char *host = name + 8;
578 int fd = create_service_thread(connect_service, (void *)host);