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

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

공개 메소드들

메소드 설명
CloseConnections ( ) : void

Close connections.

CreateMsgBlkListResponse ( byte segmentId, BLOCK_RANGE blockRanges, uint nextBlockIndex, CryptoAlgoId_Values cryptoAlgoIdValues, MsgType_Values msgTypeValues ) : PccrrBLKLISTResponsePacket

Create a MsgBlkList response.

CreateMsgBlkResponse ( byte segmentId, byte block, CryptoAlgoId_Values cryptoAlgoIdValues, MsgType_Values msgTypeValues, bool isLastBLKAvail ) : PccrrBLKResponsePacket

Create a MsgBlk response.

CreateMsgBlkResponse ( byte segmentId, byte block, CryptoAlgoId_Values cryptoAlgoIdValues, MsgType_Values msgTypeValues, byte iv, uint blockIndex, uint nextBlockIndex ) : PccrrBLKResponsePacket

Create a MsgBlk response.

CreateMsgNegoResponse ( ProtoVersion minSupportedProtocolVer, ProtoVersion maxSupportedProtocolVer, CryptoAlgoId_Values cryptoAlgoIdValues, MsgType_Values msgTypeValues ) : PccrrNegoResponsePacket

Create a MsgNego response.

CreateSegListResponse ( CryptoAlgoId_Values cryptoAlgoIdValues, System.Guid requestID, BLOCK_RANGE segmentRanges ) : PccrrSegListResponsePacket

Create a MsgSegList response.

Dispose ( ) : void

Release resources.

PccrrServer ( int serverPort ) : System

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

PccrrServer ( int serverPort, string pccrrPath, IPAddressType addressType ) : System

Initializes a new instance of the PccrrServer class.

PccrrServer ( int serverPort, string pccrrPath, IPAddressType addressType, ILogPrinter logger ) : System

Initializes a new instance of the PccrrServer class.

SendBytes ( byte bytes ) : void

Send bytes.

SendPacket ( PccrrPacket packet ) : void

Send a packet.

StartListening ( ) : void

Start listening.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Release resources.

비공개 메소드들

메소드 설명
DecodePacket ( Uri uri, HttpMethod httpMethod, byte rawdata ) : PccrrPacket

Decode a packet.

DecomposeHttpRequest ( HttpListenerRequest httpListenerRequest ) : byte[]

Gets the request body byte array from the http request.

HttpServerTransport_ReceiveFrom ( object sender, HttpRequestEventArg e ) : void

Receive pccrr message.

메소드 상세

CloseConnections() 공개 메소드

Close connections.
public CloseConnections ( ) : void
리턴 void

CreateMsgBlkListResponse() 공개 메소드

Create a MsgBlkList response.
public CreateMsgBlkListResponse ( byte segmentId, BLOCK_RANGE blockRanges, uint nextBlockIndex, CryptoAlgoId_Values cryptoAlgoIdValues, MsgType_Values msgTypeValues ) : PccrrBLKLISTResponsePacket
segmentId byte The segmentId.
blockRanges BLOCK_RANGE The blockRanges.
nextBlockIndex uint The nextBlockIndex.
cryptoAlgoIdValues CryptoAlgoId_Values The cryptoAlgoId.
msgTypeValues MsgType_Values The msgType.
리턴 PccrrBLKLISTResponsePacket

CreateMsgBlkResponse() 공개 메소드

Create a MsgBlk response.
public CreateMsgBlkResponse ( byte segmentId, byte block, CryptoAlgoId_Values cryptoAlgoIdValues, MsgType_Values msgTypeValues, bool isLastBLKAvail ) : PccrrBLKResponsePacket
segmentId byte The segmentId.
block byte The block.
cryptoAlgoIdValues CryptoAlgoId_Values The cryptoAlgoId.
msgTypeValues MsgType_Values The msgType.
isLastBLKAvail bool If it is true, the block is the last available block.
리턴 PccrrBLKResponsePacket

CreateMsgBlkResponse() 공개 메소드

Create a MsgBlk response.
public CreateMsgBlkResponse ( byte segmentId, byte block, CryptoAlgoId_Values cryptoAlgoIdValues, MsgType_Values msgTypeValues, byte iv, uint blockIndex, uint nextBlockIndex ) : PccrrBLKResponsePacket
segmentId byte The segmentId.
block byte The block.
cryptoAlgoIdValues CryptoAlgoId_Values The cryptoAlgoId.
msgTypeValues MsgType_Values The msgType.
iv byte The initial vector.
blockIndex uint Block index.
nextBlockIndex uint Next available block index.
리턴 PccrrBLKResponsePacket

CreateMsgNegoResponse() 공개 메소드

Create a MsgNego response.
public CreateMsgNegoResponse ( ProtoVersion minSupportedProtocolVer, ProtoVersion maxSupportedProtocolVer, CryptoAlgoId_Values cryptoAlgoIdValues, MsgType_Values msgTypeValues ) : PccrrNegoResponsePacket
minSupportedProtocolVer ProtoVersion The minSupportedProtocolVersion.
maxSupportedProtocolVer ProtoVersion The maxSupportedProtocolVersion.
cryptoAlgoIdValues CryptoAlgoId_Values The cryptoAlgoId.
msgTypeValues MsgType_Values The msgType.
리턴 PccrrNegoResponsePacket

CreateSegListResponse() 공개 메소드

Create a MsgSegList response.
public CreateSegListResponse ( CryptoAlgoId_Values cryptoAlgoIdValues, System.Guid requestID, BLOCK_RANGE segmentRanges ) : PccrrSegListResponsePacket
cryptoAlgoIdValues CryptoAlgoId_Values The cryptoAlgoId.
requestID System.Guid Request ID.
segmentRanges BLOCK_RANGE Segment ranges.
리턴 PccrrSegListResponsePacket

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

PccrrServer() 공개 메소드

Initializes a new instance of the PccrrServer class with default settings.
public PccrrServer ( int serverPort ) : System
serverPort int The server port.
리턴 System

PccrrServer() 공개 메소드

Initializes a new instance of the PccrrServer class.
public PccrrServer ( int serverPort, string pccrrPath, IPAddressType addressType ) : System
serverPort int The server port.
pccrrPath string The pccrr path.
addressType IPAddressType The IP address type.
리턴 System

PccrrServer() 공개 메소드

Initializes a new instance of the PccrrServer class.
public PccrrServer ( int serverPort, string pccrrPath, IPAddressType addressType, ILogPrinter logger ) : System
serverPort int The server port.
pccrrPath string The pccrr path.
addressType IPAddressType The IP address type.
logger ILogPrinter The specified logger.
리턴 System

SendBytes() 공개 메소드

Send bytes.
public SendBytes ( byte bytes ) : void
bytes byte The bytes need to be sent.
리턴 void

SendPacket() 공개 메소드

Send a packet.
public SendPacket ( PccrrPacket packet ) : void
packet PccrrPacket The packet need to be sent.
리턴 void

StartListening() 공개 메소드

Start listening.
public StartListening ( ) : void
리턴 void