[Twisted-Python] Re: Perspective Broker and UDP, is it possible?

Ed Suominen general at eepatents.com
Wed Sep 1 15:41:30 EDT 2004

> I'm doing my master thesis in computer science, and the topic
> for the project is "Managment of network delays in computer games".
> The software im going to use is Python with Twisted and Pygame.
> Right now I'm trying to get to know how different parts of Twisted
> interact with each other. And my first question is:
> Is it possible to use Perspective Broker with UDP?
> I've tried modifying the examples here
> (http://www.twistedmatrix.com/documents/current/howto/pb-usage),
> with DatagramProtocol and so on, but I haven't got it to work.
> I suspect that it is impossible due to that UDPs is connectionless,
> but there's a lot of "magic" in Twisted, so I thought I'd better
> ask the pros'.

It is certainly possible, just not with the current version of PB. In any 
modified version (go for it!), I think you would need to provide client 
identifying info with each burst of data, or limit "connections" to just one 
client at a time per port, to keep track of things.

I'm not a twisted expert, but I do use it extensively. I have also learned an 
embarrassingly large amount of stuff about low-level TCP/IP due to too much 
experience with a vastly inferior high-level language [1].

[1] http://tinyurl.com/5nrkp

Ed Suominen
Registered Patent Agent
Open-Source Software Author (yes, both...)
Web Site: http://www.eepatents.com

More information about the Twisted-Python mailing list