Thanks Lee - I dig in the code and see what happens there. I also check the code of the original Cube game, but still, I have feeling that I'm missing something. Can you point me the best way to use enet in the client-server authoritative topology?
Thanks a lot! W dniu 2018-03-16 17:15:56 użytkownik Lee Salzman <[email protected]> napisał: > You can use enet_host_flush() to just send currently queueing outgoing > packets. However, to deal with incoming ones, you must use > enet_host_service(), since there are resends/acks and other things > that must be taken care of as part of the receipt process, and it > can't be straightforwardly staged like you show. > > On Fri, Mar 16, 2018 at 6:35 AM, shinyclaw <[email protected]> wrote: > > Hi all! Can I separate the process of capturing incoming packet from > > sending them? Now, when I call enet_host_service(), the function process > > all incoming packets and sends all queued packets. What I want to achieve > > exactly is to separate this two processes like this: > > > > ProcessIncomingPackets(); > > DoGameLogic(); > > ProcessOutgoingPackets(); > > > > How can I achieve this using ENet? > > Thanks for any ideas! > > > > _______________________________________________ > > ENet-discuss mailing list > > [email protected] > > http://lists.cubik.org/mailman/listinfo/enet-discuss > > _______________________________________________ > ENet-discuss mailing list > [email protected] > http://lists.cubik.org/mailman/listinfo/enet-discuss > _______________________________________________ ENet-discuss mailing list [email protected] http://lists.cubik.org/mailman/listinfo/enet-discuss
