[Twisted-Python] Binding a twisted application to only one interface
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)
Christian Schneider wrote:
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.
See this thread: http://twistedmatrix.com/pipermail/twisted-python/2006-May/013092.html -- Nicola Larosa - http://www.tekNico.net/ If you're in a job that feels safe, you are not going to get rich, because if there is no danger there is almost certainly no leverage. -- Paul Graham, May 2004
participants (2)
-
Christian Schneider
-
Nicola Larosa