1. Arne Babenhauserheide
  2. basic-gnutella-python

Commits

Arne Babenhauserheide  committed f1778e8

added a search method to the tagnet.

  • Participants
  • Parent commits a8abc3f
  • Branches default

Comments (0)

Files changed (1)

File gnutella.py

View file
  • Ignore whitespace
                 self.connections.append(conn)
                 break
             print("# remaining contacts:", len(self.contacts.list))
+    
+    def search(self, txt):
+        """Search for the given search string."""
+        for conn in connections:
+            conn.query(txt)