summaryrefslogtreecommitdiffstats
path: root/x11vnc/x11vnc.c
diff options
context:
space:
mode:
authorrunge <runge>2008-10-29 23:41:28 +0000
committerrunge <runge>2008-10-29 23:41:28 +0000
commit4dbc5d5a129ac009521da08bdc83eba5ea1eb51b (patch)
treec0f72b543f54996eb3ef10aab3f4207bfff33c07 /x11vnc/x11vnc.c
parent8938cda1e7e09d946475fddaba46194baf7e6388 (diff)
downloadlibtdevnc-4dbc5d5a129ac009521da08bdc83eba5ea1eb51b.tar.gz
libtdevnc-4dbc5d5a129ac009521da08bdc83eba5ea1eb51b.zip
x11vnc: -http_oneport for single port HTTP and VNC. Improve find_display wrt lsof blocking with -b.
Diffstat (limited to 'x11vnc/x11vnc.c')
-rw-r--r--x11vnc/x11vnc.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/x11vnc/x11vnc.c b/x11vnc/x11vnc.c
index 5b7530c..6a43d48 100644
--- a/x11vnc/x11vnc.c
+++ b/x11vnc/x11vnc.c
@@ -1800,6 +1800,7 @@ int main(int argc, char* argv[]) {
int got_rfbwait = 0;
int got_httpdir = 0, try_http = 0;
int orig_use_xdamage = use_xdamage;
+ int http_oneport_msg = 0;
XImage *fb0 = NULL;
int ncache_msg = 0;
@@ -2362,6 +2363,12 @@ int main(int argc, char* argv[]) {
enc_str = strdup(argv[++i]);
continue;
}
+ if (!strcmp(arg, "-http_oneport")) {
+ http_oneport_msg = 1;
+ use_openssl = 1;
+ enc_str = strdup("none");
+ continue;
+ }
if (!strcmp(arg, "-ssltimeout")) {
CHECK_ARGC
ssl_timeout_secs = atoi(argv[++i]);
@@ -3643,6 +3650,9 @@ int main(int argc, char* argv[]) {
}
if (! quiet && ! inetd) {
int i;
+ if (http_oneport_msg) {
+ rfbLog("setting '-enc none' for -http_oneport mode.\n");
+ }
for (i=1; i < argc_vnc; i++) {
rfbLog("passing arg to libvncserver: %s\n", argv_vnc[i]);
if (!strcmp(argv_vnc[i], "-passwd")) {
@@ -4620,11 +4630,13 @@ if (0) fprintf(stderr, "XA: %s\n", getenv("XAUTHORITY"));
#endif
}
} else {
+#if !NO_X11
int op, ev, er;
if (XQueryExtension(dpy, "MIT-SHM", &op, &ev, &er)) {
xshm_opcode = op;
if (0) fprintf(stderr, "xshm_opcode: %d %d %d\n", op, ev, er);
}
+#endif
}
#if LIBVNCSERVER_HAVE_XKEYBOARD