C# Class DistributedFileSystem.ChunkAvailabilityReply

Show file Open project: MarcFletcher/NetworkComms.Net Class Usage Examples

Private Properties

Property Type Description
ChunkAvailabilityReply System

Public Methods

Method Description
ChunkAvailabilityReply ( ShortGuid sourceNetworkIdentifier, string itemCheckSum, byte chunkIndex, string packetIdentifier ) : System

Create an ChunkAvailabilityReply which will precede the requested data.

ChunkAvailabilityReply ( string sourceNetworkIdentifier, string itemCheckSum, byte chunkIndex, ChunkReplyState replyState ) : System

Create an ChunkAvailabilityReply which will not contain the requested data.

SetChunkData ( byte chunkData ) : void

Set the data for this ChunkAvailabilityReply

SetSourceConnectionInfo ( ConnectionInfo info ) : void

Set the connectionInfo associated with the source of this ChunkAvailabilityReply

Private Methods

Method Description
ChunkAvailabilityReply ( ) : System

Method Details

ChunkAvailabilityReply() public method

Create an ChunkAvailabilityReply which will precede the requested data.
public ChunkAvailabilityReply ( ShortGuid sourceNetworkIdentifier, string itemCheckSum, byte chunkIndex, string packetIdentifier ) : System
sourceNetworkIdentifier NetworkCommsDotNet.Tools.ShortGuid The network identifier of the source of this ChunkAvailabilityReply
itemCheckSum string The checksum of the DFS item
chunkIndex byte The chunkIndex of the requested item
packetIdentifier string The packet identifier used to send the data
return System

ChunkAvailabilityReply() public method

Create an ChunkAvailabilityReply which will not contain the requested data.
public ChunkAvailabilityReply ( string sourceNetworkIdentifier, string itemCheckSum, byte chunkIndex, ChunkReplyState replyState ) : System
sourceNetworkIdentifier string The network identifier of the source of this ChunkAvailabilityReply
itemCheckSum string The checksum of the DFS item
chunkIndex byte The chunkIndex of the requested item
replyState ChunkReplyState A suitable reply state
return System

SetChunkData() public method

Set the data for this ChunkAvailabilityReply
public SetChunkData ( byte chunkData ) : void
chunkData byte The chunk data
return void

SetSourceConnectionInfo() public method

Set the connectionInfo associated with the source of this ChunkAvailabilityReply
public SetSourceConnectionInfo ( ConnectionInfo info ) : void
info ConnectionInfo The ConnectionInfo associated with the source of this ChunkAvailabilityReply
return void