<div>Thanks Ruud, I assume that this is the case on the client side? On the server side, it should be event.peer->incomingPeerID?</div>
<div> </div>
<div>W dniu 2018-03-02 16:29:36 użytkownik Ruud van Gaal <ruud@racer.nl> napisał:</div>
<blockquote style="margin-left: 7px; border-left: 2px solid orange; padding-left: 8px;">
<div dir="ltr">I use event.peer->outgoingPeerID.
<div> </div>
<div>Ruud</div>
</div>
<div><br>
<div>On Fri, Mar 2, 2018 at 2:23 PM, shinyclaw <span dir="ltr"><<a href="mailto:shinyclaw@op.pl" target="_blank">shinyclaw@op.pl</a>></span> wrote:<br>
<blockquote style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;">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!<br> <br> _______________________________________________<br> ENet-discuss mailing list<br> <a href="mailto:ENet-discuss@cubik.org" target="_blank">ENet-discuss@cubik.org</a><br> <a href="http://lists.cubik.org/mailman/listinfo/enet-discuss" rel="noreferrer" target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a></blockquote>
</div>
</div>
</blockquote>
<div> </div>