예제 #1
0
 public bool IsDownloading(string filename)
 {
     lock (m_inbox)
     {
         return(m_inbox.ContainsKey(filename));
     }
 }
예제 #2
0
 public void FileRequested(string sender, string recipient, string filename)
 {
     lock (m_outbox)
     {
         if (!m_outbox.ContainsKey(filename))
         {
             m_outbox[filename] = new CCBP2POutFile(filename, sender, recipient);
             m_signal.Set();
         }
     }
     MaybeStart();
 }