On Thu, Feb 21, 2008 at 10:50 AM, Nathan <[EMAIL PROTECTED]> wrote:
>
>  I'm attempting to write a simple little real-time server-client game
>  where the server and client talk to each other over the network.
>

There is no such thing as a simple real-time server-client game.  In
less you mean a not-really-real-time (TM) server-client game.

>  My initial implementation uses the built-in socket module, but I can't
>  find a way to flush the socket!  Any suggestions for a simple way for
>  fast communications, or a way to make sockets work fast?  (right now,
>  the sockets seem to just wait about 2 seconds, and then transmit,
>  which is rather funny to watch, but not very playable).
>
>

Just use Twisted.  Then you might actually come close to the "simple"
objective.    Nonetheless, you might want to google TCP_NODELAY for
your particular problem.

Cheers,
-- 
\\\\\/\"/\\\\\\\\\\\
\\\\/ // //\/\\\\\\\
\\\/ \\// /\ \/\\\\
\\/ /\/ / /\/ /\ \\\
\/ / /\/ /\ /\\\ \\
/ /\\\ /\\\ \\\\\/\
\/\\\\\/\\\\\/\\\\\\
 d.p.s

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to