Method | Description | |
---|---|---|
Close ( ) : void |
Closes the connection with the remote server.
|
|
Connect ( Stream stream, |
Connects to a VNC server.
|
|
Connect ( string hostname, int port = 5900, |
Connects to a VNC server with the specified hostname and port.
|
|
SendKeyEvent ( int keysym, bool pressed ) : void |
Sends a key event to the VNC server to indicate a key has been pressed or released.
|
|
SendLocalClipboardChange ( string data ) : void |
Notifies the server that the local clipboard has changed. If you are implementing clipboard integration, use this to set the remote clipboard.
|
|
SendPointerEvent ( int x, int y, int pressedButtons ) : void |
Sends a pointer event to the VNC server to indicate mouse motion, a button click, etc.
|
|
VncClient ( ) : System |
Initializes a new instance of the VncClient class.
|
Method | Description | |
---|---|---|
OnBell ( ) : void |
Raises the Bell event
|
|
OnClosed ( ) : void |
Raises the Close event.
|
|
OnConnected ( ) : void |
Raises the Connected event.
|
|
OnConnectionFailed ( ) : void |
Raises the ConnectionFailed event.
|
|
OnFramebufferChanged ( |
Raises the FramebufferChanged event.
|
|
OnRemoteClipboardChanged ( |
Raises the RemoteClipboardChanged event.
|
Method | Description | |
---|---|---|
AllocateFramebufferScratch ( int bytes ) : byte[] | ||
CopyToFramebuffer ( int tx, int ty, int w, int h, byte pixels ) : void | ||
CopyToGeneral ( int tx, int ty, int tw, int th, byte outPixels, int sx, int sy, int sw, int sh, byte inPixels, int w, int h ) : void | ||
HandleBell ( ) : void | ||
HandleFramebufferUpdate ( ) : void | ||
HandleReceiveClipboardData ( ) : void | ||
HandleSetColorMapEntries ( ) : void | ||
InitFramebufferDecoder ( ) : void | ||
NegotiateDesktop ( ) : void | ||
NegotiateEncodings ( ) : void | ||
NegotiateSecurity ( ) : void | ||
NegotiateVersion ( ) : void | ||
SendFramebufferUpdateRequest ( bool incremental ) : void | ||
ThreadMain ( ) : void |
public Connect ( Stream stream, |
||
stream | Stream | The stream containing the connection. |
options | Connection options, if any. You can specify a password here. | |
return | void |
public Connect ( string hostname, int port = 5900, |
||
hostname | string | The name of the host to connect to. |
port | int | The port to connect on. 5900 is the usual for VNC. |
options | Connection options, if any. You can specify a password here. | |
return | void |
protected OnFramebufferChanged ( |
||
e |
/// A |
|
return | void |
protected OnRemoteClipboardChanged ( |
||
e |
/// A |
|
return | void |
public SendKeyEvent ( int keysym, bool pressed ) : void | ||
keysym | int | The X11 keysym of the key. For many keys this is the ASCII value. |
pressed | bool | |
return | void |
public SendLocalClipboardChange ( string data ) : void | ||
data | string | The contents of the local clipboard. |
return | void |
public SendPointerEvent ( int x, int y, int pressedButtons ) : void | ||
x | int | The X coordinate of the mouse. |
y | int | The Y coordinate of the mouse. |
pressedButtons | int | /// A bit mask of pressed mouse buttons, in X11 convention: 1 is left, 2 is middle, and 4 is right. /// Mouse wheel scrolling is treated as a button event: 8 for up and 16 for down. /// |
return | void |