~tdelaet/cimple/old-codebase

« back to all changes in this revision

Viewing changes to src/cimple/core/discovery/trackers.py

  • Committer: Thomas Delaet
  • Date: 2010-01-07 14:14:32 UTC
  • Revision ID: thomas@cole-20100107141432-yhker27v3pmn62uo
first phase of rewrite with focus on storage

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
import discovery
2
 
import uuid
3
 
 
4
 
class TrackerAdvertiser(discovery.Advertiser):
5
 
        
6
 
        def _service_type(self):
7
 
                return "_tracker._udp"
8
 
        
9
 
        def _txt_dictionary(self):
10
 
                return {}
11
 
        
12
 
        def _name(self):
13
 
                return str(uuid.uuid4())
14
 
        
15
 
class TrackerDiscovery(discovery.Discovery):
16
 
        """
17
 
        Tracker discovery
18
 
        """
19
 
        
20
 
        TYPE = "_tracker._udp"
21
 
        
22
 
        def __init__(self):
23
 
                discovery.Discovery.__init__(self, self.TYPE)
 
 
b'\\ No newline at end of file'