Displaying 2 results from an estimated 2 matches for "vnc_data_max_len".
2009 May 19
2
[PATCH server] added ovirt vnc proxy server, to proxy vnc request to managed vms
...al Public License is
+# also available at http://www.gnu.org/copyleft/gpl.html.
+
+$: << File.join(File.dirname(__FILE__), "../dutils")
+
+require 'dutils'
+require 'daemons'
+include Daemonize
+
+###########
+
+DEFAULT_VNC_PROXY_PORT = 5900
+VM_NAME_MAX_LEN   = 250
+VNC_DATA_MAX_LEN = 800000
+
+###########
+
+# clone of the taskomatic / dbomatic logger;
+# TODO move all of these seperate implementations into a single dutils module
+class Logger
+  def format_message(severity, timestamp, progname, msg)
+    "#{severity} #{timestamp} (#{$$}) #{msg}\n"
+  end
+end
+
+$l...
2009 Jun 10
1
[PATCH] add cmd line option for server vnc port
...he CA certificate bundle", NULL },
   { "check-certificate", 0, 0, G_OPTION_ARG_NONE, &check_cert,
diff --git a/tunnel.c b/tunnel.c
index c6d091d..17b512c 100644
--- a/tunnel.c
+++ b/tunnel.c
@@ -53,9 +53,6 @@ const int VM_NAME_MAX_LEN = 250;
 // max length of vnc data
 const int VNC_DATA_MAX_LEN = 800000;
 
-// port which to connect to on ovirt server
-const int OVIRT_SERVER_PORT = 5900;
-
 /* Private thread functions */
 static gpointer tunnel_thread(gpointer data);
 static gpointer client_server_thread(gpointer data);
@@ -164,7 +161,7 @@ tunnel_thread (gpointer _data)
   }
   ovirt_serve...