[][src]Crate ironrdp

Modules

gcc

Structs

ClientInfoPdu
ClientLicensePdu
ConnectInitial
ConnectResponse
FastPath

Implements the Fast-Path RDP message header PDU.

NegotiationRequestFlags

Holds the negotiation protocol flags of the request message.

NegotiationResponseFlags

Holds the negotiation protocol flags of the response message.

SecurityProtocol

The communication protocol which the client and server agree to transfer data on during the X.224 phase.

SendDataContext

Contains the channel ID and the length of the data. This structure is a part of the RdpHeaderMessage.

Enums

FastPathError

The type of a Fast-Path parsing error. Includes length error and I/O error.

McsError
McsPdu

The kind of the RDP header message that may carry additional data.

NegoData

The kind of the negotiation request message, including the message as a String.

NegotiationError

The type of the error that may result from a negotiation process.

NegotiationFailureCodes

The type of the negotiation error. Contained in NegotiationError.

X224TPDUType

The PDU type of the X.224 negotiation phase.

Constants

NEGOTIATION_REQUEST_LEN
NEGOTIATION_RESPONSE_LEN
TPDU_DATA_LENGTH
TPDU_REQUEST_LENGTH
TPKT_HEADER_LENGTH

Traits

PduParsing

Functions

decode_x224

Extracts a X.224 message type code and a buffer ready for parsing from a raw request buffer provided by the argument.

encode_x224

Encodes and writes the message to an output buffer composed from a request code and a data buffer provided by the arguments.

parse_fast_path_header

Parses the data received as an argument and returns a Fastpath structure upon success.

parse_negotiation_request

Parses the negotiation request represented by the arguments and returns a tuple with negotiation data (optional), a security protocol, and negotiation request flags.

parse_negotiation_response

Parses the negotiation response represented by the arguments and returns a tuple with a security protocol and negotiation response flags upon success.

read_tpkt_len

Reads a data source containing the TPKT header and returns its length upon success.

tpdu_header_length

Returns TPDU header length using a X.224 message type code.

write_negotiation_request

Writes the negotiation request to the output buffer. The request is composed of a cookie string, a security protocol, and negotiation request flags.

write_negotiation_response

Writes the negotiation response to an output buffer. The response is composed of a security protocol and negotiation response flags.

write_negotiation_response_error

Writes the negotiation response error to an output buffer.

write_tpkt_header

Writes the TPKT header to an output source.