On Feb 21, 3:50 pm, 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. > > 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?
To be honest, I would probably just stick with plain sockets, because the alternatives just seem to change the complexity rather than remove it. If you set the nodelay flag as specified elsewhere in this thread, you should see a significant improvement. Otherwise, if you are sending small periodic updates and don't mind if occasionally one doesn't get through or comes out of order, use UDP. (But it's not worth attempting to rewrite half of TCP in UDP, or you'll probably come out with something exhibiting the worst of both.) -- Ben Sizer --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
