[ENet-discuss] Identifying clients

Ruud van Gaal ruud at racer.nl
Fri Mar 2 15:29:36 UTC 2018


I use event.peer->outgoingPeerID.

Ruud

On Fri, Mar 2, 2018 at 2:23 PM, shinyclaw <shinyclaw at op.pl> wrote:

> Hi all, I'm trying to write a simple client-server game using ENet. I have
> a small problem with client's identification using enet_host_service()
> method. Each new client that connects to the server should have a unique
> netID, so later the server knows who is talking to him. But how can I
> achieve that? On the server, when receiving ENET_EVENT_TYPE_CONNECT event
> should I assign event.peer to newly created GameObject? Or use
> event.peer->outgoingPeerID or incomingPeerID? Or peer.sessionID? Or
> something else? Thanks for any help!
>
> _______________________________________________
> 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/20180302/730df641/attachment.html>


More information about the ENet-discuss mailing list