<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Yeah, I would like to check out some of these projects.<br>
<br>
As for using TCP, that is a valid option.&nbsp; It would be even nicer to
just start using a reliable UDP layer right from the start, though.&nbsp;
I'd rather not reinvent the wheel if I don't have to.<br>
<br>
By "reliable", I mean a library that guarantees delivery and keeps the
packets in order.&nbsp; Similar to enet (<a class="moz-txt-link-freetext" href="http://enet.cubik.org/">http://enet.cubik.org/</a>), but for
Python.&nbsp; I may end up writing a Pyrex/Boost wrapper for enet or RakNet,
but that would be a bit of a pain.&nbsp; That would probably convince me to
play with TCP for a while, then replace the networking layer with
reliable UDP when I have the time.<br>
<blockquote
 cite="mid668D1B8AD729C94DB91D17EC19B8BB910400B0EE@EMMA.personal.adp.ltu.se"
 type="cite">
  <pre wrap="">Interesting! 
Appreciate any info on semi-reliable UDP Twisted-based projects? 
Sven-Erik Tiberg.

-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:twisted-python-bounces@twistedmatrix.com">twisted-python-bounces@twistedmatrix.com</a>
[<a class="moz-txt-link-freetext" href="mailto:twisted-python-bounces@twistedmatrix.com">mailto:twisted-python-bounces@twistedmatrix.com</a>] On Behalf Of Jean-Paul
Calderone
Sent: den 19 oktober 2006 05:27
To: Twisted general discussion
Subject: Re: [Twisted-Python] Unreliable UDP

On Wed, 18 Oct 2006 21:47:51 -0500, Mike Wyatt <a class="moz-txt-link-rfc2396E" href="mailto:mwyatt@wi.rr.com">&lt;mwyatt@wi.rr.com&gt;</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Does Twisted provide any support for reliable UDP?  I'm looking for a 
nice networking library for and real-time (i.e. non-TCP) game
    </pre>
  </blockquote>
  <pre wrap=""><!---->development.

First, just use TCP, unless you have already implemented the game using
TCP, done performance testing and discovered problems tied to TCP which
are resolved by UDP.

Assuming you have done that, come up with a list of the kind of traffic
your game needs to exchange between hosts.  Based on that, you may be
able to narrow your search (there are lots of kinds of "reliable" UDP)
or you may find that existing solutions aren't suitable.

Twisted itself doesn't offer any kind of reliability layering on top of
UDP, but there are various Twisted-based projects which use UDP for
semi-reliable messaging.  Whether any of them might be of use to you
depends on how closely your message model matches theirs.

Most likely, you'll end up implementing something yourself, assuming you
actually need a UDP-based solution at all.

Jean-Paul

_______________________________________________
Twisted-Python mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a>
<a class="moz-txt-link-freetext" href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a>

_______________________________________________
Twisted-Python mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a>
<a class="moz-txt-link-freetext" href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a>


  </pre>
</blockquote>
<br>
</body>
</html>