/*----< start a send source file and request files by each sender >----------*/ private void startsend(List <string> requestFiles, int port, int numofProcess, Sender send) { Sender sndr = send; sndr.WritePath_ = "..\\..\\..\\ProcessPool\\Build" + (port - numofProcess); sndr.postFile(requestFiles[requestFiles.Count() - 1]); sendSourceToChild(sndr, requestFiles[requestFiles.Count() - 1]); string fileSendToChild = requestFiles[requestFiles.Count() - 1]; requestFiles.RemoveAt(requestFiles.Count() - 1); CommMessage sndMsg = new CommMessage(CommMessage.MessageType.request); sndMsg.command = "sendfile"; sndMsg.author = "Quanfeng Du"; sndMsg.to = "http://localhost:" + (port - numofProcess).ToString() + "/Ibuilder"; sndMsg.from = "http://localhost:" + (port - numofProcess).ToString() + "/Ibuilder"; sndMsg.filename = fileSendToChild; sndr.postMessage(sndMsg); }