Refactor amp into three modules, separating clients/server better

This commit is contained in:
Griatch 2018-01-11 23:43:58 +01:00
parent 82fd9ff698
commit b0d545a086
6 changed files with 711 additions and 706 deletions

View file

@ -187,13 +187,13 @@ if AMP_ENABLED:
# the portal and the mud server. Only reason to ever deactivate
# it would be during testing and debugging.
from evennia.server import amp
from evennia.server.portal import amp_server
print(' amp (to Server): %s (internal)' % AMP_PORT)
factory = amp.AmpServerFactory(PORTAL)
factory = amp_server.AMPServerFactory(PORTAL)
amp_service = internet.TCPServer(AMP_PORT, factory, interface=AMP_INTERFACE)
amp_service.setName("PortalAMPService")
amp_service.setName("PortalAMPServer")
PORTAL.services.addService(amp_service)