C# Class Microsoft.Protocols.TestTools.StackSdk.BranchCache.Pccrr.PccrrClient

Pccrr client.
Inheritance: IDisposable
Datei anzeigen Open project: Microsoft/WindowsProtocolTestSuites Class Usage Examples

Public Methods

Method Description
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.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Release resources.

Method Details

CloseConnections() public method

Close connections.
public CloseConnections ( ) : void
return void

CreateMsgGetBlkListRequest() public method

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.
return PccrrGETBLKLISTRequestPacket

CreateMsgGetBlksRequest() public method

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.
return PccrrGETBLKSRequestPacket

CreateMsgGetBlksRequest() public method

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.
return PccrrGETBLKSRequestPacket

CreateMsgGetSegListRequest() public method

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.
return PccrrGetSegListRequestPacket

CreateMsgGetSegListRequest() public method

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.
return PccrrGetSegListRequestPacket

CreateMsgNegoRequest() public method

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.
return PccrrNegoRequestPacket

Dispose() public method

Release resources.
public Dispose ( ) : void
return void

Dispose() protected method

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.
return void

ExpectPacket() public method

Expect a packet.
public ExpectPacket ( ) : PccrrPacket
return PccrrPacket

PccrrClient() public method

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
return System

PccrrClient() public method

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.
return System

PccrrClient() public method

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.
return System

SendBytes() public method

Send bytes.
public SendBytes ( byte bytes, System.TimeSpan timeout ) : void
bytes byte The bytes need to be sent.
timeout System.TimeSpan The timeout.
return void

SendPacket() public method

Send a packet.
public SendPacket ( PccrrPacket packet, System.TimeSpan timeout ) : void
packet PccrrPacket The packet need to be sent.
timeout System.TimeSpan The timeout.
return void