[Twisted-Python] Possible bug in from twisted.internet.app import Application ?

I am running freebsd with python 2.2.2 and twisted 1.10 the same code worked fine on another server which is identical except it is running twisted 1.07 anyways from twisted.internet.app import Application from pyRtpRelay import TRelayService print "Relay Going Up" application = Application('pyRtpRelay') RelayService=TRelayService(application) RelayService.Start() Inside my object TRelayService when I call application.ListenUDP(XXXXXXXX) it will not listen on the required UDP ports and returns None. As a temporary hack I then when from twisted.internet import reactor reactor.ListenUDP(XXXXXX) and it worked fine Thanx John

On Tue, 25 Nov 2003 19:04:00 -0800 jjanecek@telusplanet.net wrote:
I am running freebsd with python 2.2.2 and twisted 1.10
application.ListenUDP(XXXXXXXX) it will not listen on the required UDP ports and returns None.
This is for a reason, too complicated to get into (in 1.0.7 it would sometimes return None as well, in some cases). You should upgrade your code to use twisted.application instead of twisted.internet.app, which is deprecated. Also, sounds like you want to be doing reactor.listenUDP. -- Itamar Shtull-Trauring http://itamarst.org/ Available for Python & Twisted consulting

On Tue, 25 Nov 2003 19:04:00 -0800 jjanecek@telusplanet.net wrote:
I am running freebsd with python 2.2.2 and twisted 1.10
application.ListenUDP(XXXXXXXX) it will not listen on the required UDP ports and returns None.
This is for a reason, too complicated to get into (in 1.0.7 it would sometimes return None as well, in some cases). You should upgrade your code to use twisted.application instead of twisted.internet.app, which is deprecated. Also, sounds like you want to be doing reactor.listenUDP. -- Itamar Shtull-Trauring http://itamarst.org/ Available for Python & Twisted consulting
participants (2)
-
Itamar Shtull-Trauring
-
jjanecek@telusplanet.net