If this isn't the right place to post suggested patches/enhancements
please let me know.
For reasons I'd be glad to explain in gory detail I want to run Xvnc
not listening for any RFB connections (also not listening for any TCP
connections for X etc too). [ hint I use it with -connect ]
I produced a teny little patch for vnc 3.3 (or was it TightVNC) which
allows -rfbport -1 to mean disable the rfbport code, but I seem to
have lost track of where I put it (oops).
Anyway the code may well be different in vnc 4.0 so that patch may not
have applied cleanly.
Here is a patch for xc/programs/Xserver/vnc/vncExtInit.cc (from
vnc-4.0-unixsrc).
--cut-here--
--- xc/programs/Xserver/vnc/vncExtInit.cc~ 2004-03-18 17:25:33.000000000 +0000
+++ xc/programs/Xserver/vnc/vncExtInit.cc 2004-09-01 23:56:36.000000000 +0100
@@ -163,10 +163,15 @@
}
} else {
int port = rfbport;
- if (port == 0) port = 5900 + atoi(display);
- port += 1000 * scr;
- listener = new network::TcpListener(port, localhostOnly);
- vlog.info("Listening for VNC connections on port %d",port);
+
+ if (port < 0) {
+ vlog.info("NOT listening for VNC connections", port);
+ } else {
+ if (port == 0) port = 5900 + atoi(display);
+ port += 1000 * scr;
+ listener = new network::TcpListener(port, localhostOnly);
+ vlog.info("Listening for VNC connections on port %d",port);
+ }
CharArray httpDirStr(httpDir.getData());
if (httpDirStr.buf[0]) {
port = httpPort;
--cut-here--
Sorry if this is considered inappropriate.
-- Jon
_______________________________________________
VNC-List mailing list
[EMAIL PROTECTED]
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list