C# Класс Microsoft.Protocols.TestTools.StackSdk.FileAccessService.Smbd.SmbdConnectionEndpoint

The implementation-dependent representation used to access the RDMA connection.
Наследование: IDisposable
Показать файл Открыть проект

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

Метод Описание
ConnectToServerOverRdma ( String localIpAddress, String remoteIpAddress, UInt16 port, AddressFamily ipFamily ) : NtStatus

establish connection over RDMA

DeregisterMemoryWindow ( RdmaBufferDescriptorV1 bufferDescriptor ) : void

Deregister memory window

Disconnect ( ) : void

Disconnect

Dispose ( ) : void
GetRequestResult ( System.TimeSpan timeout, RequestType type ) : SmbdRequestResult

Get result of request

ListenConnection ( String localIpAddress, ushort port, AddressFamily ipFamily ) : NtStatus

listen and wait for peer connect

PostReceive ( uint bufferSize ) : NtStatus

Post Receive request

ReadMemoryWindow ( byte data, RdmaBufferDescriptorV1 bufferDescriptor ) : NtStatus

Read data from memory window

ReceiveData ( System.TimeSpan timeout, byte &data ) : NtStatus

Receive data over RDMA

RegisterMemoryWindow ( uint size, RdmaOperationReadWriteFlag flag, bool reversed, RdmaBufferDescriptorV1 &bufferDescriptor ) : NtStatus

Register memory windows

SendData ( byte data ) : NtStatus

Send data over RDMA

SmbdConnectionEndpoint ( uint inboundEntries, uint outboundEntries, uint inboundSegment, uint outboundSegment, uint inboundReadLimit, uint outboundReadLimit, uint inboundDataSize, SmbdLogEvent logEvent = null ) : System

SmbdEndpoint constructor will load RDMA providers and initialize default connection values.

WaitDisconnect ( System.TimeSpan timeout ) : void

Wait until network is disconnected, using a TimeSpan to specify the time interval.

WriteMemoryWindow ( byte data, RdmaBufferDescriptorV1 bufferDescriptor ) : NtStatus

Write data to memory window

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

Метод Описание
CompleteConnect ( ) : void

Complete the work of connection

LogEvent ( string str ) : void

log event

NotifyCallback ( Object stateInfo ) : void

Notify callback

NotifyDisconnectCallBack ( Object stateInfo ) : void

notify disconnect

OpenAdapter ( RdmaProviderInfo providers, string localIpAddress, AddressFamily ipFamily, SmbdLogEvent logEvent ) : RdmaAdapter

Open adapter with local IP address

OutputAddressInfoSupportedByProvider ( RdmaProviderInfo providerInfo, SmbdLogEvent logEvent ) : void

output all addresses which are supported by the provider

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

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

establish connection over RDMA
public ConnectToServerOverRdma ( String localIpAddress, String remoteIpAddress, UInt16 port, AddressFamily ipFamily ) : NtStatus
localIpAddress String local IP address
remoteIpAddress String remote IP address
port System.UInt16 port
ipFamily AddressFamily IP Family
Результат NtStatus

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

Deregister memory window
public DeregisterMemoryWindow ( RdmaBufferDescriptorV1 bufferDescriptor ) : void
bufferDescriptor RdmaBufferDescriptorV1 Buffer Descriptor point to memory windows
Результат void

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

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

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

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

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

Get result of request
public GetRequestResult ( System.TimeSpan timeout, RequestType type ) : SmbdRequestResult
timeout System.TimeSpan
type RequestType
Результат SmbdRequestResult

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

listen and wait for peer connect
public ListenConnection ( String localIpAddress, ushort port, AddressFamily ipFamily ) : NtStatus
localIpAddress String
port ushort
ipFamily AddressFamily IP Family IPv4 or IPv6
Результат NtStatus

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

Post Receive request
public PostReceive ( uint bufferSize ) : NtStatus
bufferSize uint
Результат NtStatus

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

Read data from memory window
public ReadMemoryWindow ( byte data, RdmaBufferDescriptorV1 bufferDescriptor ) : NtStatus
data byte
bufferDescriptor RdmaBufferDescriptorV1 Buffer Descriptor point to memory windows
Результат NtStatus

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

Receive data over RDMA
public ReceiveData ( System.TimeSpan timeout, byte &data ) : NtStatus
timeout System.TimeSpan
data byte
Результат NtStatus

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

Register memory windows
public RegisterMemoryWindow ( uint size, RdmaOperationReadWriteFlag flag, bool reversed, RdmaBufferDescriptorV1 &bufferDescriptor ) : NtStatus
size uint Size of memory to register
flag RdmaOperationReadWriteFlag
reversed bool if it is true, little-endian and big-endian will be reversed in bufferDescriptor
bufferDescriptor RdmaBufferDescriptorV1 Buffer Descriptor point to memory windows
Результат NtStatus

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

Send data over RDMA
public SendData ( byte data ) : NtStatus
data byte
Результат NtStatus

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

SmbdEndpoint constructor will load RDMA providers and initialize default connection values.
public SmbdConnectionEndpoint ( uint inboundEntries, uint outboundEntries, uint inboundSegment, uint outboundSegment, uint inboundReadLimit, uint outboundReadLimit, uint inboundDataSize, SmbdLogEvent logEvent = null ) : System
inboundEntries uint maximum number of outstanding Receive requests.
outboundEntries uint maximum number of outstanding Send, SendAndInvalidate /// , Bind, Invalidate, Read, and Write requests. ///
inboundSegment uint inbound segments limit
outboundSegment uint outbound segments limit
inboundReadLimit uint maximum inbound read limit for the local Network /// Direct adapter. This value can be zero if you do not support ///
outboundReadLimit uint
inboundDataSize uint Max Size of RDMA inbound data
logEvent SmbdLogEvent Delegate to log SMBD event
Результат System

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

Wait until network is disconnected, using a TimeSpan to specify the time interval.
public WaitDisconnect ( System.TimeSpan timeout ) : void
timeout System.TimeSpan
Результат void

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

Write data to memory window
public WriteMemoryWindow ( byte data, RdmaBufferDescriptorV1 bufferDescriptor ) : NtStatus
data byte
bufferDescriptor RdmaBufferDescriptorV1 Buffer Descriptor point to memory windows
Результат NtStatus