[Twisted-Python] udp

Jean-Paul Calderone exarkun at divmod.com
Thu Jun 14 15:59:02 EDT 2007


On Thu, 14 Jun 2007 20:42:47 +0100, Bruce Coram <brucecoram at clara.co.uk> wrote:
>How do you send data using udp?
>
>I want to use udp to send messages from clients to a server.  I don't
>want to use connected udp.
>
>Can anyone supply some specimen code for me
>

Consider using TCP instead:

http://twistedmatrix.com/projects/core/documentation/howto/servers.html
http://twistedmatrix.com/projects/core/documentation/howto/clients.html

It's probably much better suited to your application than UDP.  However,
there is UDP documentation on the website as well:

http://twistedmatrix.com/projects/core/documentation/howto/udp.html

Jean-Paul




More information about the Twisted-Python mailing list