I use python twisted and I have two separate servers running: one that receives TCP, one that receives UDP, and each of them uses
reactor.listenTCP(PORT, factory)
reactor.run()
and
reactor.listenUDP(PORT, BaseThreadedUDPServer())
reactor.run()
They work, but now I want to combine them on one server, which receives both TCP and UDP, but they both use a variable reactor. Isn't that a twist reactor, not mine. If it were my own, I could just change the name for each.
Thank!
source
share