[ENet-discuss] send a message from a client to client

Bjørn Lindeijer bjorn at lindeijer.nl
Wed Jun 11 01:46:05 PDT 2008


On 5/16/08, Ng Yao Kheng <ngyaokheng at hotmail.com> wrote:
>
>  Hi all,
>
>  Does anyone know how to send a message from a client to another client that
> is both connected to the server? Appreciate with some example code.
>
>  Please advice. Thanks....

Uhm, you would just have to send the message to the server, and the
server would have to forward it to the other client.

If your architecture requires you to do this frequently, you would
probably add something like a target client id to the start of each
message you send to the server, so that the server just reads this
first and can forward the message directly to the target client.

Hope that helped.

Regards,
Bjørn


More information about the ENet-discuss mailing list