Method | Description | |
---|---|---|
CreateBatchedOfferMessage ( int connectionInfoPort, |
Create BATCHED_OFFER_MESSAGE package.
|
|
CreateInitialOfferMessage ( int connectionInfoPort, byte hash ) : |
Create INITIAL_OFFER_MESSAGE package.
|
|
CreateSegmentInfoMessage ( int connectionInfoPort, |
Create SEGMENT_INFO_MESSAGE package.
|
|
CreateSegmentInfoMessage ( int connectionInfoPort, |
Create SEGMENT_INFO_MESSAGE package.
|
|
Dispose ( ) : void |
Implement IDisposable. Do not make this method virtual. A derived class should not be able to override this method.
|
|
PCHCClient ( TransferProtocol httpTransportType, string serverName, int port, string resource ) : System |
Initializes a new instance of the PCHCClient class With the specified http transport type, server name, linsten port number and resource.
|
|
PCHCClient ( TransferProtocol httpTransportType, string serverName, int port, string resource, ILogPrinter logger ) : System |
Initializes a new instance of the PCHCClient class With the specified http transport type, server name, linsten port number and resource.
|
|
PCHCClient ( TransferProtocol httpTransportType, string serverName, int port, string resource, string domainName, string userName, string userPassword ) : System |
Initializes a new instance of the PCHCClient class With the specified http transport type, server name, linsten port number and resource.
|
|
SendBatchedOfferMessage ( |
Send the BATCHED_OFFER_MESSAGE request.
|
|
SendInitialOfferMessage ( |
Send the INITIAL_OFFER_MESSAGE request.
|
|
SendSegmentInfoMessage ( |
Send the SEGMENT_INFO_MESSAGE request.
|
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. 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
|
|
SendByte ( byte httpRequestPayload ) : |
Send the byte array of PCHC message using https transport .
|
public CreateBatchedOfferMessage ( int connectionInfoPort, |
||
connectionInfoPort | int | /// A 16-bit unsigned integer that MUST be set by the client to the port /// on which it is listening as a server-role peer, for use with the retrieval protocol. /// |
contentInfo | A Content Information V2 data structure. | |
return |
public CreateInitialOfferMessage ( int connectionInfoPort, byte hash ) : |
||
connectionInfoPort | int | /// A 16-bit unsigned integer that MUST be set by the client to the port /// on which it is listening as a server-role peer, for use with the retrieval protocol. /// |
hash | byte | The HoHoDk value of the segment. |
return |
public CreateSegmentInfoMessage ( int connectionInfoPort, |
||
connectionInfoPort | int | /// A 16-bit unsigned integer that MUST be set by the client to the port /// on which it is listening as a server-role peer, for use with the retrieval protocol. /// |
segmentInformation | A Content Information data structure. | |
return |
public CreateSegmentInfoMessage ( int connectionInfoPort, |
||
connectionInfoPort | int | /// A 16-bit unsigned integer that MUST be set by the client to the port /// on which it is listening as a server-role peer, for use with the retrieval protocol. /// |
contentInformation | A Content Information data structure. | |
segmentIndex | int | Segment index. |
return |
public PCHCClient ( TransferProtocol httpTransportType, string serverName, int port, string resource ) : System | ||
httpTransportType | TransferProtocol | Http transport type. |
serverName | string | The server name. |
port | int | The listening port. |
resource | string | The resource. |
return | System |
public PCHCClient ( TransferProtocol httpTransportType, string serverName, int port, string resource, ILogPrinter logger ) : System | ||
httpTransportType | TransferProtocol | Http transport type. |
serverName | string | The server name. |
port | int | The listening port. |
resource | string | The resource. |
logger | ILogPrinter | The logger. |
return | System |
public PCHCClient ( TransferProtocol httpTransportType, string serverName, int port, string resource, string domainName, string userName, string userPassword ) : System | ||
httpTransportType | TransferProtocol | Http transport type. |
serverName | string | The server name. |
port | int | The listening port. |
resource | string | The resource. |
domainName | string | The domain name. |
userName | string | The user name. |
userPassword | string | The password. |
return | System |
public SendBatchedOfferMessage ( |
||
batchedOfferMessage | The BATCHED_OFFER_MESSAGE message. | |
return |
public SendInitialOfferMessage ( |
||
initialOfferMessage | The INITIAL_OFFER_MESSAGE message. | |
return |
public SendSegmentInfoMessage ( |
||
segmentInfoMessage | The SEGMENT_INFO_MESSAGE message. | |
return |