Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

        def track(args):
    if len(args) == 0:
        print formatDefinitions(defaults, 80)
        return
    try:
        config, files = parseargs(args, defaults, 0, 0)
    except ValueError, e:
        print 'error: ' + str(e)
        print 'run with no arguments for parameter explanations'
        return
    r = RawServer(Event(), config['timeout_check_interval'], config['socket_timeout'])
    t = Tracker(config, r)
    r.bind(config['port'], config['bind'], True)
    r.listen_forever(HTTPHandler(t.get, config['min_time_between_log_flushes']))
    t.save_dfile()
    print '# Shutting down: ' + isotime()
        


src/k/a/kamaelia-HEAD/Sketches/RJL/bittorrent/BitTorrent/bittorrent-tracker.py   kamaelia(Download)
import os
from sys import argv
from BitTorrent.track import track
 
if __name__ == '__main__':
    track(argv[1:])

src/b/e/benflix-HEAD/videoportal/BitTorrent/bttrack.py   benflix(Download)
 
from sys import argv
from BitTorrent.track import track
 
if __name__ == '__main__':
    track(argv[1:])