[ENet-discuss] ENetPeer pointer comparison..

Syed Setia Pernama syedhs at yahoo.com
Fri Mar 29 07:43:45 PDT 2013


Hi,

I am 80% sure nothing wrong is with my code. Here I copy+paste the log:-

22:12:48: Pinging peer (pointer=29411384, ip = 10.1.1.10)
22:12:48: Pinging peer (pointer=29411764, ip = 10.1.1.30)
22:12:48: ID_GENERAL_PING  (pointer=29412144)


What happened is I ping (using my own structure) two peers which has ENetPeer pointer address = 29411384 & 29411764. And then the peer is supposed to reply back, and I compare the ENetPeer
stored in ENetEvent, and they are not the same! 29412144 is not the same with both (29411384 & 29411764). What I was hoping is the ENetPeer stored in ENetEvent should equal to either one,
and therefore my code works.

Question:
Can anyone confirm that ENet indeed create a new copy of ENetPeer (not reusing it) for the above case?

TIA.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20130329/dbf1e776/attachment.html>


More information about the ENet-discuss mailing list