コード例 #1
0
    def __init__(self, host, port, timeout=0):
        '''
        Takes a directory and allows the user to replay every file with the
        .crashlog extension in it

        @type host: String
        @param host: The host to send the crash files to
        @type port: Integer
        @param: The port to send the crash files to
        @type timeout: Integer
        @param timeout: (Optional) Timeout to send a cancel
            for the replayed request if possible
        '''

        self.host = host
        self.port = port
        self.timeout = timeout
        self.crash_files = []

        if timeout != 0:
            self.canceler = SIPInviteCanceler(host, port, timeout)

        self.poc_template = '''# Created by VoIPER