Changeset 95:2f12d9ce0e70 in livinglogic.python.tipimaid

Show
Ignore:
Timestamp:
03/05/09 16:01:03 (10 years ago)
Author:
Nikolas Tautenhahn <nik@…>
Branch:
default
Message:

renamed liaalh to tipimaid

Files:
4 moved

Legend:

Unmodified
Added
Removed
  • tipimaid.py

    r94 r95  
    253253    """ 
    254254    Helper Class which overwrites "<" and "<=" to do the right things for 
    255     liaalh-loglines - it should only be sorted according to the datetime 
     255    tipimaid-loglines - it should only be sorted according to the datetime 
    256256    of the logline. 
    257257    """ 
     
    265265class Buffer(object): 
    266266    """ 
    267     The main class of liaalh 
     267    The main class of tipimaid 
    268268    """ 
    269     def __init__(self, pattern='', gzip_logs=None, buffertime=0, stream=sys.stdin, utcrotate=False, symlinkpattern=None, execute=None, progname="liaalh", num_threads=3): 
     269    def __init__(self, pattern='', gzip_logs=None, buffertime=0, stream=sys.stdin, utcrotate=False, symlinkpattern=None, execute=None, progname="tipimaid", num_threads=3): 
    270270        self.pattern = pattern 
    271271        self.gzip_logs = gzip_logs 
  • tipimaid_sender.py

    r93 r95  
    3535    The main class for the sender... yadda yadda 
    3636    """ # TODO: Write more stuff 
    37     def __init__(self, ip, port, buffertime=0, backuppath=None, stream=sys.stdin, progname="liaalh_sender"): # TODO: Put the right name in here 
     37    def __init__(self, ip, port, buffertime=0, backuppath=None, stream=sys.stdin, progname="tipimaid_sender"): # TODO: Put the right name in here 
    3838        self.ip = ip 
    3939        self.port = port 
     
    174174                                    self.s = None 
    175175                                    self.buffer = self.buffer[i:] # the first i items were transmitted successfully 
    176                                     sys.stderr.write("[%s] [liaalh_sender]: Socket connection died again, while sending buffered data\n" % (datetime.datetime.now().strftime("%a %b %d %H:%M:%S %Y"), self.progname)) 
     176                                    sys.stderr.write("[%s] [tipimaid_sender]: Socket connection died again, while sending buffered data\n" % (datetime.datetime.now().strftime("%a %b %d %H:%M:%S %Y"), self.progname)) 
    177177                                    return # our socket died while we were transmitting buffered items - go back to "normal" behaviour 
    178178                        else: # some buffered entries come too late, maybe because it took so long to wait for the server's response. 
  • tipimaid_server.py

    r93 r95  
    3535    Starts the server at port port. If netcat_compatible is True the server does 
    3636    not notify the sender that it received something. Thus a connection loss 
    37     might be noticed later than when liaalh_sender is used which is the 
     37    might be noticed later than when tipimaid_sender is used which is the 
    3838    recommended setup here. Actually this switch only exists for paranoid admins 
    39     who don't speak python and don't trust liaalh_sender (but trust netctat 
     39    who don't speak python and don't trust tipimaid_sender (but trust netctat 
    4040    instead). 
    4141    """ 
     
    9595    import optparse 
    9696    p = optparse.OptionParser(usage="usage: %prog port") 
    97     p.add_option("-n", "--netcat-compatible", dest="netcat", action="store_true", help="If set, %s switches to netcat-compatible mode. Otherwise %s assumes that it talks to its own sender which has better recovery in case of a broken connection.\nDo NOT use this switch if you use liaalh_sender!" % (sys.argv[0], sys.argv[0]), default=None) # TODO: Fix name liaalh_sender 
     97    p.add_option("-n", "--netcat-compatible", dest="netcat", action="store_true", help="If set, %s switches to netcat-compatible mode. Otherwise %s assumes that it talks to its own sender which has better recovery in case of a broken connection.\nDo NOT use this switch if you use tipimaid_sender!" % (sys.argv[0], sys.argv[0]), default=None) 
    9898    (options, args) = p.parse_args() 
    9999    if len(args) != 1 or intify(args[0], None) is None: