def METHOD_NAME(self, transport):
    logger.info("Connected %s", self)
    # set up lower level sized message protocol
    # creates reference cycle
    smp = self.sm_protocol = SizedMessageProtocol(self._first_message)
    smp.METHOD_NAME(transport)  # takes over ``transport``
    self.data_received = smp.data_received
    self.eof_received = smp.eof_received
    self.pause_writing = smp.pause_writing
    self.resume_writing = smp.resume_writing
    self.write_message = smp.write_message
    self.write_message_iter = smp.write_message_iter