'Initializes the protocol.'

def makeConnection(self, transport):

    protocol.Protocol.makeConnection(self, transport)
    self._remainingData = ''
    self._currentPayloadSize = 0
    self._payload = BytesIO()
    self._state = self._PARSING_LENGTH
    self._expectedPayloadSize = 0
    self.brokenPeer = 0
