diff options
author | dscho <dscho> | 2004-01-21 15:25:41 +0000 |
---|---|---|
committer | dscho <dscho> | 2004-01-21 15:25:41 +0000 |
commit | 34fc97a52add15a0b3060fac23bad6bc5324403a (patch) | |
tree | 5fd054e0800f6b046e40f9664994cd1eb0bc29f3 /cargs.c | |
parent | 3a472f8805ad45f43101900126b86c11a5cf01c5 (diff) | |
download | libtdevnc-34fc97a52add15a0b3060fac23bad6bc5324403a.tar.gz libtdevnc-34fc97a52add15a0b3060fac23bad6bc5324403a.zip |
add "-progressive height" option to make SendFramebufferUpdate "preemptive"
Diffstat (limited to 'cargs.c')
-rw-r--r-- | cargs.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -35,6 +35,7 @@ rfbUsage(void) fprintf(stderr, "-httpdir dir-path enable http server using dir-path home\n"); fprintf(stderr, "-httpport portnum use portnum for http connection\n"); fprintf(stderr, "-enablehttpproxy enable http proxy support\n"); + fprintf(stderr, "-progressive height enable progressive updating for slow links\n"); } /* purges COUNT arguments from ARGV at POSITION and decrements ARGC. @@ -119,6 +120,12 @@ rfbProcessArguments(rfbScreenInfoPtr rfbScreen,int* argc, char *argv[]) rfbScreen->httpPort = atoi(argv[++i]); } else if (strcmp(argv[i], "-enablehttpproxy") == 0) { rfbScreen->httpEnableProxyConnect = TRUE; + } else if (strcmp(argv[i], "-progressive") == 0) { /* -httpport portnum */ + if (i + 1 >= *argc) { + rfbUsage(); + return FALSE; + } + rfbScreen->progressiveSliceHeight = atoi(argv[++i]); } else { /* we just remove the processed arguments from the list */ if(i != i1) |