[ENet-discuss] client/server in same programm

Uj ujdevil at gmail.com
Mon Feb 22 05:59:30 PST 2010


Hi Christian,

Enet has more a peer to peer architecture,
so both should basically call *enet_host_service*,
the client side resides in the fact the "client" is calling connect.

So, what is your code like ?

Your "client" connects to your "server",
then the client is sending one message and the server is receiving it twice
?

Send us some piece of code around the send of the client and the receive of
the server and I'll look at it.

regards,
Ju


On Sun, Feb 21, 2010 at 4:49 AM, christian audebert <
christian.audebert at wanadoo.fr> wrote:

>  Hello, i was discovered ENet with great pleasure, to replace my poor
> socket tcp/ip communication part.
>
> I use the example send by Ruud van Gaal on *Thu Jan 14 05:12:30 PST 2010
> in *[ENet-discuss] help needed for a client/server example
> <http://lists.cubik.org/pipermail/enet-discuss/2010-January/001307.html>
>
> As a start .
>
> I included the two part in thread to avoid blocking or waiting for the GUI
> and other functions.
>
> All seem to work fine, but I have an echo with messages received by the
> server.
>
> The same message is received 2 time ..
>
>
>
> I used the lib whithout modify anything, and don’t know how to resolve this
> problem.
>
>
>
> someone has already encountered this problem.?
>
>
>
> if anyone have a simple functional example of client/server in the same
> program , it will be very valuable for many..
>
>
>
> thanks in advance.
>
>
>
> _______________________________________________
> ENet-discuss mailing list
> ENet-discuss at cubik.org
> http://lists.cubik.org/mailman/listinfo/enet-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20100222/24b15c63/attachment.htm>


More information about the ENet-discuss mailing list