C# Класс Microsoft.Protocols.TestTools.StackSdk.BranchCache.Pccrr.PccrrClient

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

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

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

Close connections.

CreateMsgGetBlkListRequest ( byte segmentId, BLOCK_RANGE blockRanges, CryptoAlgoId_Values cryptoAlgoIdValues, MsgType_Values msgTypeValues ) : PccrrGETBLKLISTRequestPacket

Create a MsgGetBlkList request.

CreateMsgGetBlksRequest ( byte segmentId, CryptoAlgoId_Values cryptoAlgoIdValues, MsgType_Values msgTypeValues ) : PccrrGETBLKSRequestPacket

Create a MsgGetBlks request.

CreateMsgGetBlksRequest ( byte segmentId, CryptoAlgoId_Values cryptoAlgoIdValues, MsgType_Values msgTypeValues, uint blockIndex, uint blockCount ) : PccrrGETBLKSRequestPacket

Create a MsgGetBlks request.

CreateMsgGetSegListRequest ( CryptoAlgoId_Values cryptoAlgoIdValues, System.Guid requestID, byte segmentIDs ) : PccrrGetSegListRequestPacket

Create a MsgGetSegList request.

CreateMsgGetSegListRequest ( CryptoAlgoId_Values cryptoAlgoIdValues, System.Guid requestID, byte segmentIDs, byte extensibleBlob ) : PccrrGetSegListRequestPacket

Create a MsgGetSegList request.

CreateMsgNegoRequest ( ProtoVersion minSupportedProtocolVer, ProtoVersion maxSupportedProtocolVer, CryptoAlgoId_Values cryptoAlgoIdValues, MsgType_Values msgTypeValues ) : PccrrNegoRequestPacket

Create a MsgNego request.

Dispose ( ) : void

Release resources.

ExpectPacket ( ) : PccrrPacket

Expect a packet.

PccrrClient ( string server, int serverPort ) : System

Initializes a new instance of the PccrrClient class with default settings.

PccrrClient ( string server, int serverPort, string pccrrPath, HttpMethod method ) : System

Initializes a new instance of the PccrrClient class.

PccrrClient ( string server, int serverPort, string pccrrPath, HttpMethod method, ILogPrinter logger ) : System

Initializes a new instance of the PccrrClient class.

SendBytes ( byte bytes, System.TimeSpan timeout ) : void

Send bytes.

SendPacket ( PccrrPacket packet, System.TimeSpan timeout ) : void

Send a packet.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Release resources.

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

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

Close connections.
public CloseConnections ( ) : void
Результат void

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

Create a MsgGetBlkList request.
public CreateMsgGetBlkListRequest ( byte segmentId, BLOCK_RANGE blockRanges, CryptoAlgoId_Values cryptoAlgoIdValues, MsgType_Values msgTypeValues ) : PccrrGETBLKLISTRequestPacket
segmentId byte The segmentId.
blockRanges BLOCK_RANGE The needed BlockRanges.
cryptoAlgoIdValues CryptoAlgoId_Values The cryptoAlgoId.
msgTypeValues MsgType_Values The msgType.
Результат PccrrGETBLKLISTRequestPacket

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

Create a MsgGetBlks request.
public CreateMsgGetBlksRequest ( byte segmentId, CryptoAlgoId_Values cryptoAlgoIdValues, MsgType_Values msgTypeValues ) : PccrrGETBLKSRequestPacket
segmentId byte The segmentId.
cryptoAlgoIdValues CryptoAlgoId_Values The cryptoAlgoId.
msgTypeValues MsgType_Values The msgType.
Результат PccrrGETBLKSRequestPacket

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

Create a MsgGetBlks request.
public CreateMsgGetBlksRequest ( byte segmentId, CryptoAlgoId_Values cryptoAlgoIdValues, MsgType_Values msgTypeValues, uint blockIndex, uint blockCount ) : PccrrGETBLKSRequestPacket
segmentId byte The segmentId.
cryptoAlgoIdValues CryptoAlgoId_Values The cryptoAlgoId.
msgTypeValues MsgType_Values The msgType.
blockIndex uint The block index.
blockCount uint The block count.
Результат PccrrGETBLKSRequestPacket

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

Create a MsgGetSegList request.
public CreateMsgGetSegListRequest ( CryptoAlgoId_Values cryptoAlgoIdValues, System.Guid requestID, byte segmentIDs ) : PccrrGetSegListRequestPacket
cryptoAlgoIdValues CryptoAlgoId_Values The cryptoAlgoId.
requestID System.Guid Request ID.
segmentIDs byte Array of segment IDs.
Результат PccrrGetSegListRequestPacket

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

Create a MsgGetSegList request.
public CreateMsgGetSegListRequest ( CryptoAlgoId_Values cryptoAlgoIdValues, System.Guid requestID, byte segmentIDs, byte extensibleBlob ) : PccrrGetSegListRequestPacket
cryptoAlgoIdValues CryptoAlgoId_Values The cryptoAlgoId.
requestID System.Guid Request ID.
segmentIDs byte Array of segment IDs.
extensibleBlob byte Extensible blob.
Результат PccrrGetSegListRequestPacket

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

Create a MsgNego request.
public CreateMsgNegoRequest ( ProtoVersion minSupportedProtocolVer, ProtoVersion maxSupportedProtocolVer, CryptoAlgoId_Values cryptoAlgoIdValues, MsgType_Values msgTypeValues ) : PccrrNegoRequestPacket
minSupportedProtocolVer ProtoVersion The minSupportedProtocolVersion.
maxSupportedProtocolVer ProtoVersion The maxSupportedProtocolVersion.
cryptoAlgoIdValues CryptoAlgoId_Values The cryptoAlgoId.
msgTypeValues MsgType_Values The msgType.
Результат PccrrNegoRequestPacket

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

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

Dispose() защищенный Метод

Release resources.
protected Dispose ( bool disposing ) : void
disposing bool If disposing equals true, Managed and unmanaged resources are disposed. /// if false, Only unmanaged resources can be disposed.
Результат void

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

Expect a packet.
public ExpectPacket ( ) : PccrrPacket
Результат PccrrPacket

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

Initializes a new instance of the PccrrClient class with default settings.
public PccrrClient ( string server, int serverPort ) : System
server string The server name.
serverPort int
Результат System

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

Initializes a new instance of the PccrrClient class.
public PccrrClient ( string server, int serverPort, string pccrrPath, HttpMethod method ) : System
server string The server name.
serverPort int The serverPort.
pccrrPath string The HTTP request uri.
method HttpMethod The HTTP request method.
Результат System

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

Initializes a new instance of the PccrrClient class.
public PccrrClient ( string server, int serverPort, string pccrrPath, HttpMethod method, ILogPrinter logger ) : System
server string The server name.
serverPort int The server port.
pccrrPath string The HTTP request uri.
method HttpMethod The HTTP request method.
logger ILogPrinter The specified logger.
Результат System

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

Send bytes.
public SendBytes ( byte bytes, System.TimeSpan timeout ) : void
bytes byte The bytes need to be sent.
timeout System.TimeSpan The timeout.
Результат void

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

Send a packet.
public SendPacket ( PccrrPacket packet, System.TimeSpan timeout ) : void
packet PccrrPacket The packet need to be sent.
timeout System.TimeSpan The timeout.
Результат void