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

Inheritance: IDisposable
Afficher le fichier Open project: Microsoft/WindowsProtocolTestSuites Class Usage Examples

Méthodes publiques

Свойство Type Description
pduBuilder PduBuilder

Méthodes publiques

Méthode 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

Méthode 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 méthode

Close a DVC
public CloseChannel ( UInt16 channelId ) : void
channelId System.UInt16 Channel Id
Résultat void

CreateChannel() public méthode

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
Résultat DynamicVirtualChannel

CreateMultipleTransport() public méthode

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
Résultat void

CreateMultipleTransports() public méthode

Create multiple transports, both reliable and lossy
public CreateMultipleTransports ( ) : void
Résultat void

Dispose() public méthode

Dispose
public Dispose ( ) : void
Résultat void

ExchangeCapabilities() public méthode

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
Résultat ushort

IsMultipleTransportCreated() public méthode

Whether a multitransport has been created
public IsMultipleTransportCreated ( DynamicVC_TransportType transportType ) : bool
transportType DynamicVC_TransportType
Résultat bool

RdpedycServer() public méthode

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

Send() public méthode

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

SendDataCompressedReqPdu() public méthode

public SendDataCompressedReqPdu ( uint channelId, byte data ) : void
channelId uint
data byte
Résultat void

SendFirstCompressedDataPdu() public méthode

public SendFirstCompressedDataPdu ( uint channelId, byte data ) : void
channelId uint
data byte
Résultat void

SoftSyncNegotiate() public méthode

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

SoftSyncNegotiate() public méthode

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
Résultat void

Property Details

pduBuilder public_oe property

public PduBuilder pduBuilder
Résultat PduBuilder