Lines Matching defs:port
40 void avahi_advertise(char *name, char *host, uint16_t port);
54 static int try_avahi_helper(char *name, char *host, uint16_t port) {
59 if (!name || !host || !port) {}
72 sprintf(portstr, "%d", (int) port);
140 if (!name || !host || !port) {}
150 void avahi_advertise(char *name, char *host, uint16_t port) {
154 t = getenv("X11VNC_AVAHI_PORT"); if (t) port = atoi(t);
156 if (!try_avahi_helper(name, host, port)) {
191 uint16_t port;
197 uint16_t port;
253 uint16_t port);
279 _avahi_create_services(new_name, svc->host, svc->port);
294 static void _avahi_create_services(char *name, char *host, uint16_t port) {
298 if (db) fprintf(stderr, "in _avahi_create_services '%s' '%s' %d\n", name, host, port);
301 svc->port = port;
315 AVAHI_PROTO_UNSPEC, 0, name, "_rfb._tcp", NULL, NULL, port, NULL);
331 void avahi_advertise(char *name, char *host, uint16_t port) {
336 t = getenv("X11VNC_AVAHI_PORT"); if (t) port = atoi(t);
338 if (db) fprintf(stderr, "in avahi_advertise: '%s' '%s' %d\n", name, host, port);
358 if (registered[i].port != port) {
368 registered[i].port = port;
374 _avahi_create_services(name, host, port >= 5900 ? port : 5900+port);