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

Inheritance: IDisposable
Mostra file Open project: Microsoft/WindowsProtocolTestSuites Class Usage Examples

Public Properties

Property Type Description
pduBuilder PduBuilder

Public Methods

Method Description
CloseChannel ( UInt16 channelId ) : void

Close a DVC

CreateChannel ( System.TimeSpan timeout, ushort priority, string channelName, DynamicVC_TransportType transportType, ReceiveData receiveCallBack = null, uint channelId = null ) : DynamicVirtualChannel

Create a dynamic virtual channel

CreateMultipleTransport ( DynamicVC_TransportType transportType ) : void

Create a multitransport, RDP_UDP_reliable or RDP_UDP_Lossy

CreateMultipleTransports ( ) : void

Create multiple transports, both reliable and lossy

Dispose ( ) : void

Dispose

ExchangeCapabilities ( TimeSpan timeout, DYNVC_CAPS_Version version = DYNVC_CAPS_Version.VERSION3 ) : ushort

Exchange DVC capability, negotiate the version

IsMultipleTransportCreated ( DynamicVC_TransportType transportType ) : bool

Whether a multitransport has been created

RdpedycServer ( RdpbcgrServer server, RdpbcgrServerSessionContext context, bool autoCloseChannel = true ) : System

Constructor

Send ( DynamicVCPDU pdu, DynamicVC_TransportType transportType ) : void

Send a PDU using a specific transport

SendDataCompressedReqPdu ( uint channelId, byte data ) : void
SendFirstCompressedDataPdu ( uint channelId, byte data ) : void
SoftSyncNegotiate ( TimeSpan timeout, Dictionary channelListDic = null ) : void

Send Soft Sync requst.

SoftSyncNegotiate ( TimeSpan timeout, SoftSyncReqFlags_Value flags, ushort numberOfTunnels, SoftSyncChannelList channelList = null ) : void

Send Soft Sync request and wait for Soft Sync response.

Private Methods

Method Description
CloseChannel ( CloseDvcPdu pdu ) : void

Close a channel after received a Close DVC PDU

ExpectDVCCapResponsePDU ( TimeSpan timeout, DynamicVC_TransportType transportType = DynamicVC_TransportType.RDP_TCP ) : CapsRespDvcPdu

Expect a DVC Capabilities Response PDU

ExpectDVCClosePDU ( TimeSpan timeout, uint channelId, DynamicVC_TransportType transportType ) : CloseDvcPdu

Expect a DVC Close PDU

ExpectDVCCreateResponsePDU ( TimeSpan timeout, uint channelId, DynamicVC_TransportType transportType ) : CreateRespDvcPdu

Expect a DVC Create Response PDU

ExpectSoftSyncResponsePDU ( TimeSpan timeout, DynamicVC_TransportType transportType = DynamicVC_TransportType.RDP_TCP ) : SoftSyncResDvcPdu

Expect a DYNVC_SOFT_SYNC_RESPONSE PDU.

ProcessPacket ( DynamicVCPDU pdu, DynamicVC_TransportType transportType ) : void

Process DVC packet, but don't process data packet Data packet will be processed by corresponding Dynamic virtual channel

ProcessPacketFromTCP ( DynamicVCPDU pdu ) : void

Process Packet from TCP transport

ProcessPacketFromUDPL ( DynamicVCPDU pdu ) : void

Process packet from lossy UDP transport

ProcessPacketFromUDPR ( DynamicVCPDU pdu ) : void

Process Packet from reliable UDP transport

SendDVCCapRequestPDU ( DYNVC_CAPS_Version version, DynamicVC_TransportType transportType = DynamicVC_TransportType.RDP_TCP ) : void

Send DVC Capabilities Request PDU

SendDVCClosePDU ( uint channelId, DynamicVC_TransportType transportType ) : void

Send DVC Close PDU

SendDVCCreateRequestPDU ( ushort priority, uint channelId, string channelName, DynamicVC_TransportType transportType ) : void

Send a Create Request PDU

SendSoftSyncRequestPDU ( SoftSyncReqFlags_Value flags, ushort numberOfTunnels, SoftSyncChannelList channelList = null, DynamicVC_TransportType transportType = DynamicVC_TransportType.RDP_TCP ) : void

Send DYNVC_SOFT_SYNC_REQUEST PDU.

Method Details

CloseChannel() public method

Close a DVC
public CloseChannel ( UInt16 channelId ) : void
channelId System.UInt16 Channel Id
return void

CreateChannel() public method

Create a dynamic virtual channel
public CreateChannel ( System.TimeSpan timeout, ushort priority, string channelName, DynamicVC_TransportType transportType, ReceiveData receiveCallBack = null, uint channelId = null ) : DynamicVirtualChannel
timeout System.TimeSpan
priority ushort Priority
channelName string Channel name
transportType DynamicVC_TransportType Transport type
receiveCallBack ReceiveData Callback method called when received data
channelId uint
return DynamicVirtualChannel

CreateMultipleTransport() public method

Create a multitransport, RDP_UDP_reliable or RDP_UDP_Lossy
public CreateMultipleTransport ( DynamicVC_TransportType transportType ) : void
transportType DynamicVC_TransportType Type of the transport, reliable or lossy
return void

CreateMultipleTransports() public method

Create multiple transports, both reliable and lossy
public CreateMultipleTransports ( ) : void
return void

Dispose() public method

Dispose
public Dispose ( ) : void
return void

ExchangeCapabilities() public method

Exchange DVC capability, negotiate the version
public ExchangeCapabilities ( TimeSpan timeout, DYNVC_CAPS_Version version = DYNVC_CAPS_Version.VERSION3 ) : ushort
timeout TimeSpan
version DYNVC_CAPS_Version
return ushort

IsMultipleTransportCreated() public method

Whether a multitransport has been created
public IsMultipleTransportCreated ( DynamicVC_TransportType transportType ) : bool
transportType DynamicVC_TransportType
return bool

RdpedycServer() public method

Constructor
public RdpedycServer ( RdpbcgrServer server, RdpbcgrServerSessionContext context, bool autoCloseChannel = true ) : System
server RdpbcgrServer
context RdpbcgrServerSessionContext
autoCloseChannel bool
return System

Send() public method

Send a PDU using a specific transport
public Send ( DynamicVCPDU pdu, DynamicVC_TransportType transportType ) : void
pdu DynamicVCPDU
transportType DynamicVC_TransportType
return void

SendDataCompressedReqPdu() public method

public SendDataCompressedReqPdu ( uint channelId, byte data ) : void
channelId uint
data byte
return void

SendFirstCompressedDataPdu() public method

public SendFirstCompressedDataPdu ( uint channelId, byte data ) : void
channelId uint
data byte
return void

SoftSyncNegotiate() public method

Send Soft Sync requst.
public SoftSyncNegotiate ( TimeSpan timeout, Dictionary channelListDic = null ) : void
timeout TimeSpan wait time
channelListDic Dictionary TunnelType value & Channel Ids
return void

SoftSyncNegotiate() public method

Send Soft Sync request and wait for Soft Sync response.
public SoftSyncNegotiate ( TimeSpan timeout, SoftSyncReqFlags_Value flags, ushort numberOfTunnels, SoftSyncChannelList channelList = null ) : void
timeout TimeSpan wait time
flags SoftSyncReqFlags_Value specifies the contents of this PDU
numberOfTunnels ushort tunnel numbers
channelList SoftSyncChannelList DYNVC_SOFT_SYNC_CHANNEL_LISTs
return void

Property Details

pduBuilder public_oe property

public PduBuilder pduBuilder
return PduBuilder