Example #1
0
 public void AcceptFileTransfer(PullRequest request, string path)
 {
     acceptFileTransfer(request, path);
 }
Example #2
0
 protected void processPullRequest(ClientThread ct, PullRequest request)
 {
     Logger.Debug("EchoBackupService:processPullRequest");
     //there probably ought to be some processing here but oh well
     ct.EnqueueWork((NetworkRequest)request);
 }
Example #3
0
 private void processMyPullRequest(PullRequest request)
 {
     int ret = sendMessage(tcpClient, request);
     NetworkResponse response = (NetworkResponse)receiveMessage(tcpClient);
     if (response.Type == Backend.ResponseType.Yes)
     {
         ret = readFileToDisk(((PullRequest)request).FileSize, ((PullRequest)request).Path);
         //todo: add result to event queue
     }
     else
     {
         //other node said willnot, cannot, or notimplemented
         //add result to event queue
         lock (_lock)
         {
             eventQueue.Enqueue(response);
         }
     }
 }
Example #4
0
 public void AcceptFileTransfer(PullRequest request, string path)
 {
     acceptFileTransfer(request, path);
 }
Example #5
0
 protected void processPullRequest(ClientThread ct, PullRequest request)
 {
     Logger.Debug("EchoBackupService:processPullRequest");
     //there probably ought to be some processing here but oh well
     ct.EnqueueWork((NetworkRequest)request);
 }