def main():
startLogging(stdout)<EOL>checker = OneTimePadChecker({'<STR_LIT>': <NUM_LIT:0>})<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.