C# Class Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpedyc.PduBuilder

显示文件 Open project: Microsoft/WindowsProtocolTestSuites Class Usage Examples

Protected Properties

Property Type Description
regsiteredPDUs List

Public Methods

Method Description
CompressDataToRdp8BulkEncodedData ( byte data, PACKET_COMPR_FLAG compressedFlag ) : byte[]
CreateCapsRespPdu ( ushort version ) : CapsRespDvcPdu
CreateCapsV1ReqPdu ( ) : CapsVer1ReqDvcPdu
CreateCapsV2ReqPdu ( ) : CapsVer2ReqDvcPdu
CreateCapsV2ReqPdu ( ushort priorityCharge0, ushort priorityCharge1, ushort priorityCharge2, ushort priorityCharge3 ) : CapsVer2ReqDvcPdu
CreateCapsV3ReqPdu ( ) : CapsVer3ReqDvcPdu
CreateCapsV3ReqPdu ( ushort priorityCharge0, ushort priorityCharge1, ushort priorityCharge2, ushort priorityCharge3 ) : CapsVer3ReqDvcPdu
CreateCloseDvcPdu ( uint channelId ) : CloseDvcPdu
CreateCompressedDataPdu ( uint channelId, byte data, int channelChunkLength = 1599 ) : Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpedyc.DataCompressedDvcPdu[]

Create a DataCompressedDvcPdu

CreateCreateReqDvcPdu ( ushort priority, uint channelId, string channelName ) : CreateReqDvcPdu
CreateCreateRespDvcPdu ( uint channelId, int creationStatus ) : CreateRespDvcPdu
CreateDataCompressedReqPdu ( uint channelId, byte data ) : DataCompressedDvcPdu

Create DYNVC_DATA_COMPRESSED

CreateDataFristCompressedReqPdu ( uint channelId, byte data ) : DataFirstCompressedDvcPdu

Create DYNVC_DATA_FIRST_COMPRESSED

CreateDataPdu ( uint channelId, byte data, int channelChunkLength ) : Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpedyc.DataDvcBasePdu[]

Create the DYNVC_DATA PDU

CreateSoftSyncReqPdu ( SoftSyncReqFlags_Value flags, ushort numberOfTunnels, SoftSyncChannelList channelList = null ) : SoftSyncReqDvcPDU

Create DYNVC_SOFT_SYNC_REQUEST PDU.

CreateUnknownPdu ( byte rawData ) : UnknownDynamicVCPDU
RegisterPdu ( DynamicVCPDU pdu ) : void
ToPdu ( byte data ) : DynamicVCPDU
ToRawData ( DynamicVCPDU pdu ) : byte[]

Protected Methods

Method Description
RegisterDefaultPdus ( ) : void

Method Details

CompressDataToRdp8BulkEncodedData() public method

public CompressDataToRdp8BulkEncodedData ( byte data, PACKET_COMPR_FLAG compressedFlag ) : byte[]
data byte
compressedFlag PACKET_COMPR_FLAG
return byte[]

CreateCapsRespPdu() public method

public CreateCapsRespPdu ( ushort version ) : CapsRespDvcPdu
version ushort
return CapsRespDvcPdu

CreateCapsV1ReqPdu() public method

public CreateCapsV1ReqPdu ( ) : CapsVer1ReqDvcPdu
return CapsVer1ReqDvcPdu

CreateCapsV2ReqPdu() public method

public CreateCapsV2ReqPdu ( ) : CapsVer2ReqDvcPdu
return CapsVer2ReqDvcPdu

CreateCapsV2ReqPdu() public method

public CreateCapsV2ReqPdu ( ushort priorityCharge0, ushort priorityCharge1, ushort priorityCharge2, ushort priorityCharge3 ) : CapsVer2ReqDvcPdu
priorityCharge0 ushort
priorityCharge1 ushort
priorityCharge2 ushort
priorityCharge3 ushort
return CapsVer2ReqDvcPdu

CreateCapsV3ReqPdu() public method

public CreateCapsV3ReqPdu ( ) : CapsVer3ReqDvcPdu
return CapsVer3ReqDvcPdu

CreateCapsV3ReqPdu() public method

public CreateCapsV3ReqPdu ( ushort priorityCharge0, ushort priorityCharge1, ushort priorityCharge2, ushort priorityCharge3 ) : CapsVer3ReqDvcPdu
priorityCharge0 ushort
priorityCharge1 ushort
priorityCharge2 ushort
priorityCharge3 ushort
return CapsVer3ReqDvcPdu

CreateCloseDvcPdu() public method

public CreateCloseDvcPdu ( uint channelId ) : CloseDvcPdu
channelId uint
return CloseDvcPdu

CreateCompressedDataPdu() public method

Create a DataCompressedDvcPdu
public CreateCompressedDataPdu ( uint channelId, byte data, int channelChunkLength = 1599 ) : Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpedyc.DataCompressedDvcPdu[]
channelId uint
data byte
channelChunkLength int
return Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpedyc.DataCompressedDvcPdu[]

CreateCreateReqDvcPdu() public method

public CreateCreateReqDvcPdu ( ushort priority, uint channelId, string channelName ) : CreateReqDvcPdu
priority ushort
channelId uint
channelName string
return CreateReqDvcPdu

CreateCreateRespDvcPdu() public method

public CreateCreateRespDvcPdu ( uint channelId, int creationStatus ) : CreateRespDvcPdu
channelId uint
creationStatus int
return CreateRespDvcPdu

CreateDataCompressedReqPdu() public method

Create DYNVC_DATA_COMPRESSED
public CreateDataCompressedReqPdu ( uint channelId, byte data ) : DataCompressedDvcPdu
channelId uint
data byte
return DataCompressedDvcPdu

CreateDataFristCompressedReqPdu() public method

Create DYNVC_DATA_FIRST_COMPRESSED
public CreateDataFristCompressedReqPdu ( uint channelId, byte data ) : DataFirstCompressedDvcPdu
channelId uint
data byte
return DataFirstCompressedDvcPdu

CreateDataPdu() public method

Create the DYNVC_DATA PDU
public CreateDataPdu ( uint channelId, byte data, int channelChunkLength ) : Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpedyc.DataDvcBasePdu[]
channelId uint The channelId
data byte The uncompressed data
channelChunkLength int The maximum number of uncompressed bytes in a single segment
return Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpedyc.DataDvcBasePdu[]

CreateSoftSyncReqPdu() public method

Create DYNVC_SOFT_SYNC_REQUEST PDU.
public CreateSoftSyncReqPdu ( SoftSyncReqFlags_Value flags, ushort numberOfTunnels, SoftSyncChannelList channelList = null ) : SoftSyncReqDvcPDU
flags SoftSyncReqFlags_Value
numberOfTunnels ushort
channelList SoftSyncChannelList
return SoftSyncReqDvcPDU

CreateUnknownPdu() public method

public CreateUnknownPdu ( byte rawData ) : UnknownDynamicVCPDU
rawData byte
return UnknownDynamicVCPDU

RegisterDefaultPdus() protected method

protected RegisterDefaultPdus ( ) : void
return void

RegisterPdu() public method

public RegisterPdu ( DynamicVCPDU pdu ) : void
pdu DynamicVCPDU
return void

ToPdu() public method

public ToPdu ( byte data ) : DynamicVCPDU
data byte
return DynamicVCPDU

ToRawData() public method

public ToRawData ( DynamicVCPDU pdu ) : byte[]
pdu DynamicVCPDU
return byte[]

Property Details

regsiteredPDUs protected_oe property

protected List regsiteredPDUs
return List