When a DistributorServer receives a connection from a DistributorSender, the DistributorServer creates a DistributorReader, which actually handles the command from the DistributorSender. A DistributorSender can send two types of commands: fileCheck and put.
fileCheck Command
The fileCheck command sends to the DistributorReader the following information:
Directory name
File name
File size
Last modified time
The DistributorReader checks the file in its local document root that corresponds to the directory name and file name. It tests whether the file size and last modified time of this file match those sent in the fileCheck command by the DistributorSender. The DistributorReader sends back a success or failure code, based on whether the files match or not.
put Command
The put command sends to the DistributorReader the following information:
Directory name
File name
File size
Last modified time
Data (a content repository item, file, or byte array)
The DistributorReader writes the data in the file in its local document root that corresponds to the directory name and file name in the put command.

