VncSharp

RfbProtocol Members

RfbProtocol overview

Public Static (Shared) Fields

BELL
COPYRECT_ENCODING
CORRE_ENCODING
FRAMEBUFFER_UPDATE
HEXTILE_ENCODING
RAW_ENCODING
RRE_ENCODING
SERVER_CUT_TEXT
SET_COLOUR_MAP_ENTRIES
ZRLE_ENCODING

Protected Static (Shared) Fields

CLIENT_CUT_TEXT
FRAMEBUFFER_UPDATE_REQUEST
KEY_EVENT
POINTER_EVENT
SET_ENCODINGS
SET_PIXEL_FORMAT

Protected Static (Shared) Methods

GetBytes Converts a string to bytes for transfer to the server.
GetString Converts a series of bytes to a string.

Public Instance Constructors

RfbProtocol ConstructorInitializes a new instance of the RfbProtocol class.

Public Instance Properties

ServerVersion Gets the Protocol Version of the remote VNC Host--probably 3.3, 3.7, or 3.8.

Public Instance Methods

Close Closes the connection to the remote host.
Connect Attempt to connect to a remote VNC Host.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
ReadByte Reads a single Byte value from the server.
ReadBytes Reads the specified number of bytes from the server, taking care of Big- to Little-Endian conversion.
ReadFramebufferUpdate Reads the number of update rectangles being sent by the server. See RFB Doc v. 3.8 section 6.4.1.
ReadFramebufferUpdateRectHeader Reads a rectangle's header information, including its encoding. See RFB Doc v. 3.8 section 6.4.1.
ReadProtocolVersion Reads VNC Host Protocol Version message (see RFB Doc v. 3.8 section 6.1.1)
ReadSecurityChallenge When the server uses Security Type 2 (i.e., VNC Authentication), a Challenge/Response mechanism is used to authenticate the user. See RFB Doc v. 3.8 section 6.1.2 and 6.2.2.
ReadSecurityFailureReason If the server has rejected the connection during Authentication, a reason is given. See RFB Doc v. 3.8 section 6.1.2.
ReadSecurityResult When the server uses VNC Authentication, after the Challege/Response, the server sends a status code to indicate whether authentication worked. See RFB Doc v. 3.8 section 6.1.3.
ReadSecurityTypes Determine the type(s) of authentication that the server supports. See RFB Doc v. 3.8 section 6.1.2.
ReadServerCutText Reads the text from the Cut Buffer on the server. See RFB Doc v. 3.8 section 6.4.4.
ReadServerInit Reads the server's Initialization message, specifically the remote Framebuffer's properties. See RFB Doc v. 3.8 section 6.1.5.
ReadServerMessageType Reads the type of message being sent by the server--all messages are prefixed with a message type.
ReadUInt16 Reads a single UInt16 value from the server, taking care of Big- to Little-Endian conversion.
ReadUint32 Reads a single UInt32 value from the server, taking care of Big- to Little-Endian conversion.
ToString (inherited from Object)Returns a String that represents the current Object.
WriteByte Writes a single Byte value to the server.
WriteClientCutText
WriteClientInitialisation Sends an Initialisation message to the server. See RFB Doc v. 3.8 section 6.1.4.
WriteFramebufferUpdateRequest Sends a request for an update of the area specified by (x, y, w, h). See RFB Doc v. 3.8 section 6.3.4.
WriteKeyEvent Sends a key press or release to the server. See RFB Doc v. 3.8 section 6.3.5.
WritePointerEvent Sends a mouse movement or button press/release to the server. See RFB Doc v. 3.8 section 6.3.6.
WriteProtocolVersion Send the Protocol Version supported by the client. Will be highest supported by server (see RFB Doc v. 3.8 section 6.1.1).
WriteSecurityResponse Sends the encrypted Response back to the server. See RFB Doc v. 3.8 section 6.1.2.
WriteSecurityType Indicate to the server which type of authentication will be used. See RFB Doc v. 3.8 section 6.1.2.
WriteSetEncodings Tell the server which encodings are supported by the client. See RFB Doc v. 3.8 section 6.3.3.
WriteSetPixelFormat Sends the format to be used by the server when sending Framebuffer Updates. See RFB Doc v. 3.8 section 6.3.1.
WriteUInt16 Writes a single UInt16 value to the server, taking care of Little- to Big-Endian conversion.
WriteUint32 Writes a single UInt32 value to the server, taking care of Little- to Big-Endian conversion.

Protected Instance Fields

reader
stream
tcp
verMajor
verMinor
writeLock
writer

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
ReadPadding Reads the specified number of bytes of padding (i.e., garbage bytes) from the server.
WritePadding Writes the specified number of bytes of padding (i.e., garbage bytes) to the server.

See Also

RfbProtocol Class | VncSharp Namespace