[ENet-discuss] Peer sessionID as key?
Eugene Marcotte
eugene at emarcotte.com
Sat Jan 9 03:47:15 PST 2010
On Fri, Jan 08, 2010 at 07:11:08PM -0800, Lee Salzman wrote:
> Don't use sessionID at all. It's an internal thing that is not even
> unique across peers.
>
> Inside ENetPeer there is a "void *data". Set that to point to whatever
> user data you want. ENet doesn't touch it at all, and it is there for
> this purpose.
>
Ok. Thanks :)
I should have known that. I was using it when I first started using
ENet since the tutorials mention it. Should never have dropped it I guess.
Eugene
More information about the ENet-discuss
mailing list