'Creates an AMPProtocol instance when connecting to the server.
Args:
addr (str): Connection address. Not used.'

def buildProtocol(self, addr):

    self.resetDelay()
    self.portal.amp_protocol = AMPProtocol()
    self.portal.amp_protocol.factory = self
    return self.portal.amp_protocol
