Lines Matching refs:host
40 void avahi_advertise(char *name, char *host, uint16_t port);
54 static int try_avahi_helper(char *name, char *host, uint16_t port) { in try_avahi_helper() argument
59 if (!name || !host || !port) {} in try_avahi_helper()
140 if (!name || !host || !port) {} in try_avahi_helper()
150 void avahi_advertise(char *name, char *host, uint16_t port) { in avahi_advertise() argument
153 t = getenv("X11VNC_AVAHI_HOST"); if (t) host = t; in avahi_advertise()
156 if (!try_avahi_helper(name, host, port)) { in avahi_advertise()
190 const char *host; member
196 char *host; member
214 registered[i].host = NULL; in avahi_initialise()
252 static void _avahi_create_services(char *name, char *host,
279 _avahi_create_services(new_name, svc->host, svc->port); in _avahi_entry_group_callback()
294 static void _avahi_create_services(char *name, char *host, uint16_t port) { in _avahi_create_services() argument
298 if (db) fprintf(stderr, "in _avahi_create_services '%s' '%s' %d\n", name, host, port); in _avahi_create_services()
300 svc->host = host; in _avahi_create_services()
331 void avahi_advertise(char *name, char *host, uint16_t port) { in avahi_advertise() argument
335 t = getenv("X11VNC_AVAHI_HOST"); if (t) host = t; in avahi_advertise()
338 if (db) fprintf(stderr, "in avahi_advertise: '%s' '%s' %d\n", name, host, port); in avahi_advertise()
355 if (strcmp(registered[i].host, host)) { in avahi_advertise()
367 registered[i].host = strdup(host); in avahi_advertise()
374 _avahi_create_services(name, host, port >= 5900 ? port : 5900+port); in avahi_advertise()
387 if (registered[i].host) { in avahi_reset()
388 free(registered[i].host); in avahi_reset()
389 registered[i].host = NULL; in avahi_reset()