[ENet-discuss] Separating incoming from outgoing

shinyclaw shinyclaw at op.pl
Sat Mar 17 10:54:46 UTC 2018


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 <lsalzman at gmail.com> 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 <shinyclaw at op.pl> 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
> > ENet-discuss at cubik.org
> > http://lists.cubik.org/mailman/listinfo/enet-discuss
> 
> _______________________________________________
> ENet-discuss mailing list
> ENet-discuss at cubik.org
> http://lists.cubik.org/mailman/listinfo/enet-discuss
> 






More information about the ENet-discuss mailing list