'Pass a received line to a state machine function and
transition to the next state.
@type line: L{bytes}
@param line: A received line.'

def lineReceived(self, line):

    if (self.timeout > 0):
        self.resetTimeout()
    state = self.state
    self.state = None
    state = (getattr(self, ('state_' + state))(line) or state)
    if (self.state is None):
        self.state = state
