C# 클래스 Microsoft.Protocols.TestTools.StackSdk.BranchCache.Pccrr.PccrrClient

Pccrr client.
상속: IDisposable
파일 보기 프로젝트 열기: Microsoft/WindowsProtocolTestSuites 1 사용 예제들

공개 메소드들

메소드 설명
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