public bool IsDownloading(string filename) { lock (m_inbox) { return(m_inbox.ContainsKey(filename)); } }
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(); }