Beispiel #1
0
        /// <summary>
        /// Handles a PushIndexRequest received from this ClientThread's TcpClient
        /// </summary>
        /// <param name="pir">The PushIndexRequest we need to process</param>
        private void processRemotePushIndexRequest(PushIndexRequest pir)
        {
            Logger.Debug("ClientThread:processRemotePushIndexRequest");
            sendMessage(tcpClient, new NetworkResponse(ResponseType.Yes, "", guid, pir.SequenceNumber));
            //pir.Path should be modified to be the local path where we want to store the received database
            readFileToDisk(pir.DBSize, pir.Path);
            IndexDistribution idd = new IndexDistribution();

            idd.processIndexes(pir.Path);
        }
Beispiel #2
0
 /// <summary>
 /// Handles a PushIndexRequest received from this ClientThread's TcpClient
 /// </summary>
 /// <param name="pir">The PushIndexRequest we need to process</param>
 private void processRemotePushIndexRequest(PushIndexRequest pir)
 {
     Logger.Debug("ClientThread:processRemotePushIndexRequest");
     sendMessage(tcpClient, new NetworkResponse(ResponseType.Yes, "", guid, pir.SequenceNumber));
     //pir.Path should be modified to be the local path where we want to store the received database
     readFileToDisk(pir.DBSize, pir.Path);
     IndexDistribution idd = new IndexDistribution();
     idd.processIndexes(pir.Path);
 }