diff options
author | runge <runge> | 2007-03-24 23:27:32 +0000 |
---|---|---|
committer | runge <runge> | 2007-03-24 23:27:32 +0000 |
commit | 61c56222b3becbbc8f0bafef7602baae9f8fd7d9 (patch) | |
tree | b5100fe6e64e0ca25429bf53ddbba8978412a63d /x11vnc/x11vnc.c | |
parent | f1bfe53f4fab7996292846a68e075ebe76d107e7 (diff) | |
download | libtdevnc-61c56222b3becbbc8f0bafef7602baae9f8fd7d9.tar.gz libtdevnc-61c56222b3becbbc8f0bafef7602baae9f8fd7d9.zip |
x11vnc: reverse SSL connections. -sleepin option.
Diffstat (limited to 'x11vnc/x11vnc.c')
-rw-r--r-- | x11vnc/x11vnc.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/x11vnc/x11vnc.c b/x11vnc/x11vnc.c index 6dcf579..2a839da 100644 --- a/x11vnc/x11vnc.c +++ b/x11vnc/x11vnc.c @@ -1776,6 +1776,13 @@ int main(int argc, char* argv[]) { } else if (!strcmp(arg, "-timeout")) { CHECK_ARGC first_conn_timeout = atoi(argv[++i]); + } else if (!strcmp(arg, "-sleepin")) { + int n; + CHECK_ARGC + n = atoi(argv[++i]); + if (n > 0) { + usleep(1000*1000*n); + } } else if (!strcmp(arg, "-users")) { CHECK_ARGC users_list = strdup(argv[++i]); @@ -3825,7 +3832,7 @@ int main(int argc, char* argv[]) { if (inetd && use_openssl) { if (! waited_for_client) { - accept_openssl(OPENSSL_INETD); + accept_openssl(OPENSSL_INETD, -1); } } if (! inetd && ! use_openssl) { @@ -3851,7 +3858,7 @@ int main(int argc, char* argv[]) { } set_vnc_desktop_name(); - if (ncache_beta_tester) { + if (ncache_beta_tester && ncache != 0) { ncache_beta_tester_message(); } |