C# 클래스 RemoteViewing.Vnc.Server.VncServerSession

Serves a VNC client with framebuffer information and receives keyboard and mouse interactions.
파일 보기 프로젝트 열기: qmfrederik/remoteviewing 1 사용 예제들

공개 메소드들

메소드 설명
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