[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] SOC Proposal: Networking for Pygame



This is a good point.

If the networking uses pygame events then it should be able to work without SDL.

To do this would require the networking module to work without SDL.

import pygame.networking
pygame.networking.init()

pygame.event.get() wait() poll calls should just return network
events.  The pygame.network.get() poll() wait() would also return
network events.

Also the protocol should be documented. So that other servers could be
implemented.  eg using twisted, C or whatever.



On 5/8/06, Simon Wittber <simonwittber@xxxxxxxxx> wrote:
Let me throw in a spanner...

Dedicated Game Servers which want to use the pygame network API, will
probably not (or will not be able to) use the rest of pygame.

Would it be better to connect the network API into pygame in a loose
manner, so that it can  be reused in a (headless, no SDL) game server
as well as a client with graphics / audio etc?

Considering this, would it be better to provide to separate the event
dispatch mechanism from pygame, so that it can be used separately from
pygame?

Something to consider, I guess.

-Sw.