VncServerSession MembersRemoteViewing

The VncServerSession type exposes the following members.
Constructors

  NameDescription
Public methodVncServerSession
Initializes a new instance of the VncServerSession class.
Back to Top
Methods

  NameDescription
Public methodBell
Tells the client to play a bell sound.
Public methodClose
Closes the connection with the remote client.
Public methodConnect
Starts a session with a VNC client.
Public methodFramebufferChanged
Notifies the framebuffer update thread to check for recent changes.
Public methodFramebufferManualBeginUpdate
Begins a manual framebuffer update. Do not call this method without holding FramebufferUpdateRequestLock.
Public methodFramebufferManualCopyRegion
Queues an update corresponding to one region of the framebuffer being copide to another. Do not call this method without holding FramebufferUpdateRequestLock.
Public methodFramebufferManualEndUpdate
Completes a manual framebuffer update. Do not call this method without holding FramebufferUpdateRequestLock.
Public methodFramebufferManualInvalidate(VncRectangle)
Queues an update for the specified region. Do not call this method without holding FramebufferUpdateRequestLock.
Public methodFramebufferManualInvalidate( VncRectangle )
Queues an update for each of the specified regions. Do not call this method without holding FramebufferUpdateRequestLock.
Public methodFramebufferManualInvalidateAll
Queues an update for the entire framebuffer. Do not call this method without holding FramebufferUpdateRequestLock.
Public methodSendLocalClipboardChange
Notifies the client that the local clipboard has changed. If you are implementing clipboard integration, use this to set the remote clipboard.
Public methodSetFramebufferSource
Sets the framebuffer source.
Back to Top
Properties

  NameDescription
Public propertyClientVersion
The protocol version of the client.
Public propertyFramebuffer
The framebuffer for the VNC session.
Public propertyFramebufferUpdateRequest
Information about the client's most recent framebuffer update request. This may be null if the client has no framebuffer request queued.
Public propertyFramebufferUpdateRequestLock
Lock this before performing any framebuffer updates.
Public propertyIsConnected
true if the server is connected to a client.
Public propertyMaxUpdateRate
The max rate to send framebuffer updates at, in frames per second. The default is 15.
Public propertyUserData
Store anything you want here.
Back to Top
Events

  NameDescription
Public eventClosed
Occurs when the VNC client is disconnected.
Public eventConnected
Occurs when the VNC client has successfully connected to the server.
Public eventConnectionFailed
Occurs when the VNC client has failed to connect to the server.
Public eventCreatingDesktop
Occurs when the client requests access to the desktop. It may request exclusive or shared access -- this event will relay that information.
Public eventFramebufferCapturing
Occurs when the framebuffer needs to be captured. If you have not called SetFramebufferSource(IVncFramebufferSource), alter the framebuffer in response to this event. FramebufferUpdateRequestLock is held automatically while this event is raised.
Public eventFramebufferUpdating
Occurs when the framebuffer needs to be updated. If you do not set OnlineHandled on FramebufferUpdatingEventArgs, VncServerSession will determine the updated regions itself. FramebufferUpdateRequestLock is held automatically while this event is raised.
Public eventKeyChanged
Occurs when a key has been pressed or released.
Public eventPasswordProvided
Occurs when the VNC client provides a password. Respond to this event by accepting or rejecting the password.
Public eventPointerChanged
Occurs on a mouse movement, button click, etc.
Public eventRemoteClipboardChanged
Occurs when the clipboard changes on the remote client. If you are implementing clipboard integration, use this to set the local clipboard.
Back to Top
See Also