Method | Description | |
---|---|---|
CreateResponseMessage ( RESPONSE_CODE responseCode ) : |
Create pchc response message.
|
|
Dispose ( ) : void |
Implement IDisposable. Do not make this method virtual. A derived class should not be able to override this method.
|
|
ExpectInitialOfferMessage ( string ipaddress, System.TimeSpan timeout ) : |
Expect the INITIAL_OFFER_MESSAGE request from the client.
|
|
ExpectSegmentInfoMessage ( string ipaddress, System.TimeSpan timeout ) : |
Expect the SEGMENT_INFO_MESSAGE request from the client.
|
|
PCHCServer ( ) : System |
Initializes a new instance of the PCHCServer class with the default transport type: Https; hosted cache server listen port: 443; IPAddress type: IPv4;
|
|
PCHCServer ( ILogPrinter logger ) : System |
Initializes a new instance of the PCHCServer class with specified logger instance and the default transport type: Https; hosted cache server listen port: 443; IPAddress type: IPv4;
|
|
PCHCServer ( TransferProtocol transferProtocol, int hostedCacheModeListenPort, IPAddressType ipaddressType ) : System |
Initializes a new instance of the PCHCServer class with the specified osted Cache Mode Listen Port and IPAddress type.
|
|
PCHCServer ( TransferProtocol transferProtocol, int hostedCacheModeListenPort, IPAddressType ipaddressType, ILogPrinter logger ) : System |
Initializes a new instance of the PCHCServer class with the specified osted Cache Mode Listen Port and IPAddress type.
|
|
SendHttpStatusCode401 ( ) : void |
Send http status code 401.
|
|
SendPackage ( |
Send Reponse Message to the client.
|
|
Start ( ) : void |
Start the http server process to listen and receive and http request.
|
|
Stop ( ) : void |
Stop the http server process and Release this object resources.
|
Method | Description | |
---|---|---|
DecomposeHttpRequest ( |
Get the request body byte array from the specified http request.
|
|
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. 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
|
|
ReceiveHttpRequest ( object sender, |
THe handle for the received http request event.
|
|
SendByte ( byte reponseMessagePayload ) : void |
Send the response payload.
|
public CreateResponseMessage ( RESPONSE_CODE responseCode ) : |
||
responseCode | RESPONSE_CODE | /// The response code indicates the hosted cache server response to the client request message /// |
return |
public ExpectInitialOfferMessage ( string ipaddress, System.TimeSpan timeout ) : |
||
ipaddress | string | The expected ipAddress of the remote endpoint which send request. |
timeout | System.TimeSpan | The waiting timeout. |
return |
public ExpectSegmentInfoMessage ( string ipaddress, System.TimeSpan timeout ) : |
||
ipaddress | string | The expected ipAddress of the remote endpoint which send request. |
timeout | System.TimeSpan | The waiting timeout. |
return |
public PCHCServer ( ILogPrinter logger ) : System | ||
logger | ILogPrinter | The logger. |
return | System |
public PCHCServer ( TransferProtocol transferProtocol, int hostedCacheModeListenPort, IPAddressType ipaddressType ) : System | ||
transferProtocol | TransferProtocol | The transport type will be used |
hostedCacheModeListenPort | int | /// The specified BranchCache service's listen port in hosted cache mode. /// |
ipaddressType | IPAddressType | The IP address type. |
return | System |
public PCHCServer ( TransferProtocol transferProtocol, int hostedCacheModeListenPort, IPAddressType ipaddressType, ILogPrinter logger ) : System | ||
transferProtocol | TransferProtocol | The transport type will be used |
hostedCacheModeListenPort | int | /// The specified BranchCache service's listen port in hosted cache mode. /// |
ipaddressType | IPAddressType | The IP address type. |
logger | ILogPrinter | The logger. |
return | System |
public SendPackage ( |
||
responseMessage | The response message. | |
return | void |