
Return Connect( host, display, port, viewOnlyMode) Public bool Connect( string host, int display, int port) Just for API compat, since I've added viewOnly InputPolicy = new VncDefaultInputPolicy( rfb) InputPolicy = new VncViewInputPolicy( rfb) Allocate the inputPolicy if there is a connection

/ Returns True if the VncClient object is View-Only, meaning no mouse/keyboard events are being sent. / Gets the hostname of the remote desktop / Gets the Framebuffer representing the remote server's desktop geometry. / Raised when the server caused the local clipboard to be filled. Public event EventHandler ConnectionLost / Raised when the connection to the remote host is lost.

Private IVncInputPolicy inputPolicy // A mouse/keyboard input strategy Private ManualResetEvent done // Used to tell the worker thread to die cleanly Private Thread worker // To request and read in-coming updates from server Private byte securityType // The type of Security agreed upon by client/server Private RfbProtocol rfb // The protocol object handling all communication with server. Public delegate void VncUpdateHandler( object sender, VncEventArgs e) / Delegate definition of an Event Handler used to indicate a Framebuffer Update has been received. ReSharper disable ArrangeAccessorOwnerBody ReSharper disable CompareOfFloatsByEqualityOperator Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA along with this program if not, write to the Free Software You should have received a copy of the GNU General Public License GNU General Public License for more details.

MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. but WITHOUT ANY WARRANTY without even the implied warranty of This program is distributed in the hope that it will be useful, the Free Software Foundation either version 2 of the License, or it under the terms of the GNU General Public License as published by This program is free software you can redistribute it and/or modify
