[Twisted-Python] Binding a twisted application to only one interface
Christian Schneider
schneider at gl-systemhaus.de
Fri May 19 01:48:28 MDT 2006
Hi all,
I have written a service as shown below. Now, I'd like this service
to only be available on one specific network interface but have been
unable to find any documentation on how to achieve that.
Any hints or pointers would be very welcome.
chris
from twisted.application import service
from jobsservice import JobsService
from twisted.internet import reactor
class JobsService(internet.TCPServer):
def __init__(self):
internet.TCPServer.__init__(self, 8000, JobsFactory(self))
application = service.Application("Jobs")
serviceCollection = service.IServiceCollection(application)
jobsService = JobsService()
jobsService.setServiceParent(serviceCollection)
More information about the Twisted-Python
mailing list