Swap so Server is the AMP-client and Portal the AMP-server
This commit is contained in:
parent
3971a08412
commit
82fd9ff698
3 changed files with 26 additions and 37 deletions
|
|
@ -191,10 +191,10 @@ if AMP_ENABLED:
|
|||
|
||||
print(' amp (to Server): %s (internal)' % AMP_PORT)
|
||||
|
||||
factory = amp.AmpClientFactory(PORTAL)
|
||||
amp_client = internet.TCPClient(AMP_HOST, AMP_PORT, factory)
|
||||
amp_client.setName('evennia_amp')
|
||||
PORTAL.services.addService(amp_client)
|
||||
factory = amp.AmpServerFactory(PORTAL)
|
||||
amp_service = internet.TCPServer(AMP_PORT, factory, interface=AMP_INTERFACE)
|
||||
amp_service.setName("PortalAMPService")
|
||||
PORTAL.services.addService(amp_service)
|
||||
|
||||
|
||||
# We group all the various services under the same twisted app.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue