1
# Copyright (c) 2008 Divmod. See LICENSE for details.
5
from twisted.python.log import startLogging
6
from twisted.protocols.amp import Integer, Command, AMP
7
from twisted.internet import reactor
9
from route_setup import AMPRouteServerFactory
13
response = [('value', Integer())]
22
self._valueCounter += 1
23
return {'value': self._valueCounter}
29
serverFactory = AMPRouteServerFactory()
30
serverFactory.routeProtocol = Counter
31
reactor.listenTCP(7805, serverFactory)
36
if __name__ == '__main__':