예제 #1
0
 public void AcceptFileTransfer(PullRequest request, string path)
 {
     acceptFileTransfer(request, path);
 }
예제 #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);
 }
예제 #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);
         }
     }
 }
예제 #4
0
 public void AcceptFileTransfer(PullRequest request, string path)
 {
     acceptFileTransfer(request, path);
 }
예제 #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);
 }