Method | Description | |
---|---|---|
Dispose ( ) : void |
Release the managed and unmanaged resources.
|
|
GenerateResponseMessage ( string resourceLocator, string serverSecret ) : |
Generate PCCRTP response message to reply the client request.
|
|
PccrtpServer ( int listenPort, IPAddressType addressType ) : System |
Initializes a new instance of the PccrtpServer class with specified logger instance.
|
|
PccrtpServer ( int listenPort, IPAddressType addressType, ILogPrinter logger ) : System |
Initializes a new instance of the PccrtpServer class with specified logger instance.
|
|
ReceivePccrtpRequest ( System.TimeSpan timeOut ) : |
The method is used to receive the PCCRTP request.
|
|
SentPccrtpResponse ( |
The method is used to send PCCRTP response message.
|
|
StartServer ( ) : void |
The method is used to start PCCRTP server and start to listen request input.
|
|
StopServer ( ) : void |
The method is used to stop the PCCRTP server and start to listen request input.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Release resources.
|
Method | Description | |
---|---|---|
OnHttpRequestMessageReceived ( object sender, |
The handle to HTTP request message.
|
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. /// |
return | void |
public GenerateResponseMessage ( string resourceLocator, string serverSecret ) : |
||
resourceLocator | string | The client request URI. |
serverSecret | string | The server secret set on the server endpoint. |
return |
public PccrtpServer ( int listenPort, IPAddressType addressType ) : System | ||
listenPort | int | Indicates the PCCRTP server's listen port. |
addressType | IPAddressType | Indicates the PCCRTP server's address type is Ipv4 or Ipv6. |
return | System |
public PccrtpServer ( int listenPort, IPAddressType addressType, ILogPrinter logger ) : System | ||
listenPort | int | Indicates the PCCRTP server's listen port. |
addressType | IPAddressType | Indicates the PCCRTP server's address type is Ipv4 or Ipv6. |
logger | ILogPrinter | An instance of ILogPrinter. |
return | System |
public ReceivePccrtpRequest ( System.TimeSpan timeOut ) : |
||
timeOut | System.TimeSpan | The timeout to wait the response. |
return |
public SentPccrtpResponse ( |
||
response | The PCCRTP response message. | |
return | void |