C# Class Microsoft.Protocols.TestSuites.Pccrr.PccrrServerAdapter

This class is used to provide internal function of sending or receiving message on client.
Inheritance: Microsoft.Protocols.TestTools.ManagedAdapterBase, IPccrrServerAdapter
显示文件 Open project: Microsoft/WindowsProtocolTestSuites

Public Methods

Method Description
Initialize ( ITestSite testSite ) : void

Initialize adapter data and create connection.

Reset ( ) : void

Reset the adapter

SendMsgGetBlkList ( byte sid, BLOCKRANGE blockRang, bool isVersionSupported ) : void

Send message MSG_GETBLKLIST.

SendMsgGetBlks ( byte sid, BLOCKRANGE blockRang, bool isVersionSupported ) : void

Send message MSG_GETBLKS

SendMsgNegoReq ( ) : void

Send message MSG_NEGO_REQ

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Dispose(bool disposing) executes in two distinct scenarios. If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed.

Private Methods

Method Description
GetProperty ( string propName ) : string

Get the value of property in ptfconfig file.

Method Details

Dispose() protected method

Dispose(bool disposing) executes in two distinct scenarios. If disposing equals true, the method has been called directly or indirectly by a user's code. Managed and unmanaged resources can be disposed.
protected Dispose ( bool disposing ) : void
disposing bool /// If disposing equals false, the method has been called by the /// runtime from inside the finalizer and you should not reference /// other objects. Only unmanaged resources can be disposed. ///
return void

Initialize() public method

Initialize adapter data and create connection.
public Initialize ( ITestSite testSite ) : void
testSite ITestSite the test site
return void

Reset() public method

Reset the adapter
public Reset ( ) : void
return void

SendMsgGetBlkList() public method

Send message MSG_GETBLKLIST.
public SendMsgGetBlkList ( byte sid, BLOCKRANGE blockRang, bool isVersionSupported ) : void
sid byte segment id.
blockRang BLOCKRANGE Block ranges client wants to get.
isVersionSupported bool The version in message is supported by server or not.
return void

SendMsgGetBlks() public method

Send message MSG_GETBLKS
public SendMsgGetBlks ( byte sid, BLOCKRANGE blockRang, bool isVersionSupported ) : void
sid byte segment id.
blockRang BLOCKRANGE Block ranges client wants to get
isVersionSupported bool The version in this message is supported in server.
return void

SendMsgNegoReq() public method

Send message MSG_NEGO_REQ
public SendMsgNegoReq ( ) : void
return void