def run(self):
while self.isRunning.is_set():<EOL><INDENT>try:<EOL><INDENT>try:<EOL><INDENT>self.monitorTUN()<EOL><DEDENT>except timeout_decorator.TimeoutError as error:<EOL><INDENT>pass<EOL><DEDENT>self.checkSerial()<EOL><DEDENT>except KeyboardInterrupt:<EOL><INDENT>break<EOL><DEDENT><DEDENT>
Wrapper function for TUN and serial port monitoring

Wraps the necessary functions to loop over until self._isRunning
threading.Event() is set(). This checks for data on the TUN/serial
interfaces and then sends data over the appropriate interface. This
function is automatically run when Threading.start() is called on the
Monitor class.