/// <summary> /// Adds a peer /// </summary> /// <param name="uuid">The peer's unique user ID</param> /// <param name="ip">The peer's IP</param> public void AddPeer(string uuid, string ip) { var peer = new Peer(uuid, ip); this._peers.TryAdd(peer.GetUuid(), peer); }
private QueuedFile(string hash, string path, int copies, long fileSize, string filename, bool ghost, int port, Peer peer) { _hash = hash; _path = path; this.copies = copies; _fileSize = fileSize; _filename = filename; _port = port; this._peer = peer; }