On Thu, Feb 21, 2008 at 2:40 PM, Nathan <[EMAIL PROTECTED]> wrote: > > On Thu, Feb 21, 2008 at 9:00 AM, Drew Smathers <[EMAIL PROTECTED]> wrote: > > > > 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. > > I'm aware of the realities. I just meant it's not a turn-based game > (for example) where 2-second lag would be acceptable. > > > > > 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. > > Twisted and "simple" have nothing to do with each other in my > experience.
I'm sorry to hear that :( Do you think low-level socket programming is simple? > I even bought the Twisted book, but I have a really hard > time getting into it (not to mention that the developers seem to live > on the opposite side of the world and have odd attitudes when you > start asking them questions). Really? I've found the people on the Twisted mailing list to be very helpful and take a lot of time to explain features of the library or provide links to the appropriate documentation. The same can be said of the IRC channel. Questions generally don't go ignored. So please don't go hating on people who are working hard to answer questions day in and day out (for a nominal fee of $0 per question), and continue to write and maintain awesome open source software. In terms of what side of the world they're on? I think it's the side where people understand concurrency and network programming very, very well. -- \\\\\/\"/\\\\\\\\\\\ \\\\/ // //\/\\\\\\\ \\\/ \\// /\ \/\\\\ \\/ /\/ / /\/ /\ \\\ \/ / /\/ /\ /\\\ \\ / /\\\ /\\\ \\\\\/\ \/\\\\\/\\\\\/\\\\\\ 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 -~----------~----~----~----~------~----~------~--~---
