C# Класс Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpedyc.RdpedycServer

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
pduBuilder PduBuilder

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

CloseChannel() публичный Метод

Close a DVC
public CloseChannel ( UInt16 channelId ) : void
channelId System.UInt16 Channel Id
Результат void

CreateChannel() публичный Метод

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
Результат DynamicVirtualChannel

CreateMultipleTransport() публичный Метод

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
Результат void

CreateMultipleTransports() публичный Метод

Create multiple transports, both reliable and lossy
public CreateMultipleTransports ( ) : void
Результат void

Dispose() публичный Метод

Dispose
public Dispose ( ) : void
Результат void

ExchangeCapabilities() публичный Метод

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
Результат ushort

IsMultipleTransportCreated() публичный Метод

Whether a multitransport has been created
public IsMultipleTransportCreated ( DynamicVC_TransportType transportType ) : bool
transportType DynamicVC_TransportType
Результат bool

RdpedycServer() публичный Метод

Constructor
public RdpedycServer ( RdpbcgrServer server, RdpbcgrServerSessionContext context, bool autoCloseChannel = true ) : System
server RdpbcgrServer
context RdpbcgrServerSessionContext
autoCloseChannel bool
Результат System

Send() публичный Метод

Send a PDU using a specific transport
public Send ( DynamicVCPDU pdu, DynamicVC_TransportType transportType ) : void
pdu DynamicVCPDU
transportType DynamicVC_TransportType
Результат void

SendDataCompressedReqPdu() публичный Метод

public SendDataCompressedReqPdu ( uint channelId, byte data ) : void
channelId uint
data byte
Результат void

SendFirstCompressedDataPdu() публичный Метод

public SendFirstCompressedDataPdu ( uint channelId, byte data ) : void
channelId uint
data byte
Результат void

SoftSyncNegotiate() публичный Метод

Send Soft Sync requst.
public SoftSyncNegotiate ( TimeSpan timeout, Dictionary channelListDic = null ) : void
timeout TimeSpan wait time
channelListDic Dictionary TunnelType value & Channel Ids
Результат void

SoftSyncNegotiate() публичный Метод

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
Результат void

Описание свойств

pduBuilder публичное свойство

public PduBuilder pduBuilder
Результат PduBuilder