[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [glob2-devel] Net Rewrite
From: |
Stéphane Magnenat |
Subject: |
Re: [glob2-devel] Net Rewrite |
Date: |
Wed, 25 Apr 2007 09:05:34 +0200 |
User-agent: |
KMail/1.9.6 |
> 1) Sockets, SDL? Boost? ASIO? Or perhaps GNE? SDL is going to be low
> level, but like much in SDL, its simplicity is its own reward, things
> just work. GNE is sort of a mid level API. I had discusses with the
> GNE developer about making GNE a co-project with Glob2, and Glob2 net
> classes could instead be done generically in GNE, which would better
> both worlds. Boost has excellent asymmetric design paradigms (which is
> what we need), and being Boost, its developed and discussed by allot
> of people
SDL sockets works, we can keep them. Or switch to plain socket. or use boost
ones, but not something more complex.
> 2) Communication: A while ago I figured that a message system could be
> done at the highest level. Each message would have its type, and its
> body. Currently, all messages are implemented in terms of the Order
> class, but I would rather have Order class under this higher level
> messaging system. Order classes could then be limited to just glob2
> engine stuff, without net code seeping in, and messages like
> PlayerDropped could be sent through the higher level messaging system,
> without interrupting the transfer of Orders.
Have you seen the example of more modern messages I sent here some times ago.
Steph
--
http://stephane.magnenat.net