diff options
author | runge <runge> | 2007-02-12 23:44:39 +0000 |
---|---|---|
committer | runge <runge> | 2007-02-12 23:44:39 +0000 |
commit | 241f3ed566d34bf5b6c67ebebcc00727134d93b2 (patch) | |
tree | e42ddc70dc6a50503a2e22aef238c7a1fde7fb43 /x11vnc/x11vnc.c | |
parent | 0016cd4280ee9a0d088454a508a9c7f6bde33f62 (diff) | |
download | libvncserver-241f3ed566d34bf5b6c67ebebcc00727134d93b2.zip libvncserver-241f3ed566d34bf5b6c67ebebcc00727134d93b2.tar.gz |
x11vnc: add avahi (aka mDNS/Zeroconf/Bonjour...) support thanks to Diego Petteno. add -find -create
Diffstat (limited to 'x11vnc/x11vnc.c')
-rw-r--r-- | x11vnc/x11vnc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/x11vnc/x11vnc.c b/x11vnc/x11vnc.c index 17144e0..a0d221b 100644 --- a/x11vnc/x11vnc.c +++ b/x11vnc/x11vnc.c @@ -1657,6 +1657,10 @@ int main(int argc, char* argv[]) { exit(0); } } + } else if (!strcmp(arg, "-find")) { + use_dpy = strdup("WAIT:cmd=FINDDISPLAY"); + } else if (!strcmp(arg, "-create")) { + use_dpy = strdup("WAIT:cmd=FINDCREATEDISPLAY-Xvfb"); } else if (!strcmp(arg, "-auth") || !strcmp(arg, "-xauth")) { CHECK_ARGC auth_file = strdup(argv[++i]); @@ -1773,6 +1777,8 @@ int main(int argc, char* argv[]) { } else if (!strcmp(arg, "-http_ssl")) { try_http = 1; http_ssl = 1; + } else if (!strcmp(arg, "-avahi") || !strcmp(arg, "-mdns")) { + avahi = 1; } else if (!strcmp(arg, "-connect") || !strcmp(arg, "-connect_or_exit")) { CHECK_ARGC |