[Twisted-Python] How to send data from another reactor instance
User User
netwotkstudent at yahoo.com
Fri Sep 12 15:26:37 MDT 2014
Hi,
I have the codes below and I would like to know how is it possible to send out data which came to "a" instance from "b" i mean data to port 2000 go out from port "2001" !?
class fact(DatagramProtocol):
def datagramReceived(self, datagram, addr):
self.transport.write( datagram, some_where )
a = reactor.listenUDP(2001, fact())
b = reactor.listenUDP(2002, fact())
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20140912/9975b1f5/attachment.html>
More information about the Twisted-Python
mailing list