def main():
startLogging(stdout)<EOL>checker = InMemoryUsernamePasswordDatabaseDontUse()<EOL>checker.addUser("<STR_LIT>", "<STR_LIT>")<EOL>realm = AdditionRealm()<EOL>factory = CredAMPServerFactory(Portal(realm, [checker]))<EOL>reactor.listenTCP(<NUM_LIT>, factory)<EOL>reactor.run()<EOL>
Start the AMP server and the reactor.