public void AcceptFileTransfer(PullRequest request, string path) { acceptFileTransfer(request, path); }
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); }
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); } } }