C# Класс RemoteViewing.Vnc.Server.VncServerSession

Serves a VNC client with framebuffer information and receives keyboard and mouse interactions.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Bell ( ) : void

Tells the client to play a bell sound.

Close ( ) : void

Closes the connection with the remote client.

Connect ( Stream stream, VncServerSessionOptions options = null ) : void

Starts a session with a VNC client.

FramebufferChanged ( ) : void

Notifies the framebuffer update thread to check for recent changes.

FramebufferManualBeginUpdate ( ) : void

Begins a manual framebuffer update. Do not call this method without holding VncServerSession.FramebufferUpdateRequestLock.

FramebufferManualCopyRegion ( VncRectangle target, int sourceX, int sourceY ) : void

Queues an update corresponding to one region of the framebuffer being copied to another.

Do not call this method without holding VncServerSession.FramebufferUpdateRequestLock.

FramebufferManualEndUpdate ( ) : bool

Completes a manual framebuffer update.

Do not call this method without holding VncServerSession.FramebufferUpdateRequestLock.

FramebufferManualInvalidate ( VncRectangle region ) : void

Queues an update for the specified region. Do not call this method without holding VncServerSession.FramebufferUpdateRequestLock.

FramebufferManualInvalidateAll ( ) : void

Queues an update for the entire framebuffer. Do not call this method without holding VncServerSession.FramebufferUpdateRequestLock.

SendLocalClipboardChange ( string data ) : void

Notifies the client that the local clipboard has changed. If you are implementing clipboard integration, use this to set the remote clipboard.

SetFramebufferSource ( IVncFramebufferSource source ) : void

Sets the framebuffer source.

VncServerSession ( ) : RemoteViewing.Logging

Initializes a new instance of the VncServerSession class.

Защищенные методы

Метод Описание
OnClosed ( ) : void

Raises the Closed event.

OnConnected ( ) : void

Raises the Connected event.

OnConnectionFailed ( ) : void

Raises the ConnectionFailed event.

OnCreatingDesktop ( CreatingDesktopEventArgs e ) : void

Raises the CreatingDesktop event.

OnFramebufferCapturing ( ) : void

Raises the FramebufferCapturing event.

OnFramebufferUpdating ( FramebufferUpdatingEventArgs e ) : void

Raises the FramebufferUpdating event.

OnKeyChanged ( KeyChangedEventArgs e ) : void

Raises the KeyChanged event.

OnPasswordProvided ( PasswordProvidedEventArgs e ) : void

Raises the PasswordProvided event.

OnPointerChanged ( PointerChangedEventArgs e ) : void

Raises the PointerChanged event.

OnRemoteClipboardChanged ( RemoteClipboardChangedEventArgs e ) : void

Raises the RemoteClipboardChanged event.

Приватные методы

Метод Описание
AddRegion ( VncRectangle region, VncEncoding encoding, byte contents ) : void
FramebufferSendChanges ( ) : bool
HandleFramebufferUpdateRequest ( ) : void
HandleKeyEvent ( ) : void
HandlePointerEvent ( ) : void
HandleReceiveClipboardData ( ) : void
HandleSetEncodings ( ) : void
HandleSetPixelFormat ( ) : void
InitFramebufferEncoder ( ) : void
NegotiateDesktop ( ) : void
NegotiateEncodings ( ) : void
NegotiateSecurity ( AuthenticationMethod methods ) : void
NegotiateVersion ( AuthenticationMethod &methods ) : void
ThreadMain ( ) : void

Описание методов

Bell() публичный Метод

Tells the client to play a bell sound.
public Bell ( ) : void
Результат void

Close() публичный Метод

Closes the connection with the remote client.
public Close ( ) : void
Результат void

Connect() публичный Метод

Starts a session with a VNC client.
public Connect ( Stream stream, VncServerSessionOptions options = null ) : void
stream Stream The stream containing the connection.
options VncServerSessionOptions Session options, if any.
Результат void

FramebufferChanged() публичный Метод

Notifies the framebuffer update thread to check for recent changes.
public FramebufferChanged ( ) : void
Результат void

FramebufferManualBeginUpdate() публичный Метод

Begins a manual framebuffer update. Do not call this method without holding VncServerSession.FramebufferUpdateRequestLock.
public FramebufferManualBeginUpdate ( ) : void
Результат void

FramebufferManualCopyRegion() публичный Метод

Queues an update corresponding to one region of the framebuffer being copied to another.
Do not call this method without holding VncServerSession.FramebufferUpdateRequestLock.
public FramebufferManualCopyRegion ( VncRectangle target, int sourceX, int sourceY ) : void
target VncRectangle /// The updated . ///
sourceX int /// The X coordinate of the source. ///
sourceY int /// The Y coordinate of the source. ///
Результат void

FramebufferManualEndUpdate() публичный Метод

Completes a manual framebuffer update.
Do not call this method without holding VncServerSession.FramebufferUpdateRequestLock.
public FramebufferManualEndUpdate ( ) : bool
Результат bool

FramebufferManualInvalidate() публичный Метод

Queues an update for the specified region. Do not call this method without holding VncServerSession.FramebufferUpdateRequestLock.
public FramebufferManualInvalidate ( VncRectangle region ) : void
region VncRectangle The region to invalidate.
Результат void

FramebufferManualInvalidateAll() публичный Метод

Queues an update for the entire framebuffer. Do not call this method without holding VncServerSession.FramebufferUpdateRequestLock.
public FramebufferManualInvalidateAll ( ) : void
Результат void

OnClosed() защищенный Метод

Raises the Closed event.
protected OnClosed ( ) : void
Результат void

OnConnected() защищенный Метод

Raises the Connected event.
protected OnConnected ( ) : void
Результат void

OnConnectionFailed() защищенный Метод

Raises the ConnectionFailed event.
protected OnConnectionFailed ( ) : void
Результат void

OnCreatingDesktop() защищенный Метод

Raises the CreatingDesktop event.
protected OnCreatingDesktop ( CreatingDesktopEventArgs e ) : void
e CreatingDesktopEventArgs /// The event arguments. ///
Результат void

OnFramebufferCapturing() защищенный Метод

Raises the FramebufferCapturing event.
protected OnFramebufferCapturing ( ) : void
Результат void

OnFramebufferUpdating() защищенный Метод

Raises the FramebufferUpdating event.
protected OnFramebufferUpdating ( FramebufferUpdatingEventArgs e ) : void
e FramebufferUpdatingEventArgs /// The event arguments. ///
Результат void

OnKeyChanged() защищенный Метод

Raises the KeyChanged event.
protected OnKeyChanged ( KeyChangedEventArgs e ) : void
e KeyChangedEventArgs /// The event arguments. ///
Результат void

OnPasswordProvided() защищенный Метод

Raises the PasswordProvided event.
protected OnPasswordProvided ( PasswordProvidedEventArgs e ) : void
e PasswordProvidedEventArgs /// The event arguments. ///
Результат void

OnPointerChanged() защищенный Метод

Raises the PointerChanged event.
protected OnPointerChanged ( PointerChangedEventArgs e ) : void
e PointerChangedEventArgs /// The event arguments. ///
Результат void

OnRemoteClipboardChanged() защищенный Метод

Raises the RemoteClipboardChanged event.
protected OnRemoteClipboardChanged ( RemoteClipboardChangedEventArgs e ) : void
e RemoteClipboardChangedEventArgs /// The event arguments. ///
Результат void

SendLocalClipboardChange() публичный Метод

Notifies the client that the local clipboard has changed. If you are implementing clipboard integration, use this to set the remote clipboard.
public SendLocalClipboardChange ( string data ) : void
data string The contents of the local clipboard.
Результат void

SetFramebufferSource() публичный Метод

Sets the framebuffer source.
public SetFramebufferSource ( IVncFramebufferSource source ) : void
source IVncFramebufferSource The framebuffer source, or if you intend to handle the framebuffer manually.
Результат void

VncServerSession() публичный Метод

Initializes a new instance of the VncServerSession class.
public VncServerSession ( ) : RemoteViewing.Logging
Результат RemoteViewing.Logging