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

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

Méthodes publiques

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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Release resources.

Method Details

CloseConnections() public méthode

Close connections.
public CloseConnections ( ) : void
Résultat void

CreateMsgGetBlkListRequest() public méthode

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.
Résultat PccrrGETBLKLISTRequestPacket

CreateMsgGetBlksRequest() public méthode

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.
Résultat PccrrGETBLKSRequestPacket

CreateMsgGetBlksRequest() public méthode

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.
Résultat PccrrGETBLKSRequestPacket

CreateMsgGetSegListRequest() public méthode

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.
Résultat PccrrGetSegListRequestPacket

CreateMsgGetSegListRequest() public méthode

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.
Résultat PccrrGetSegListRequestPacket

CreateMsgNegoRequest() public méthode

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.
Résultat PccrrNegoRequestPacket

Dispose() public méthode

Release resources.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

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

ExpectPacket() public méthode

Expect a packet.
public ExpectPacket ( ) : PccrrPacket
Résultat PccrrPacket

PccrrClient() public méthode

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

PccrrClient() public méthode

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.
Résultat System

PccrrClient() public méthode

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.
Résultat System

SendBytes() public méthode

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

SendPacket() public méthode

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