[ENet-discuss] event->peer usage

James Turk james at conceptofzero.net
Sun Aug 31 16:03:51 PDT 2003


By luck I wasn't getting any memory errors when putting a username there 
but I'm glad I asked to avoid future confusing problems.
 
     Thanks,
       -James Turk

Lee Salzman wrote:

>Nothing is allocated. It's pretty much just an empty field to do with as
>you please. ENet never touches the field at all, so you have to allocate
>and free any stuff you want to put in there when peers
>connect/disconnect.
>
>Lee
>
>On Sun, Aug 31, 2003 at 01:34:29PM -0400, James Turk wrote:
>  
>
>>I was wondeirng what the correct way to assign data to event->peer.data 
>>is.  It seems to be that the memory is already allocated but what is the 
>>size and how should this space be used?  Any help or examples that can 
>>be given would be appreciated.
>>
>>      thanks,
>>          James Turk
>>
>>    
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>ENet-discuss mailing list
>>ENet-discuss at cubik.org
>>http://lists.cubik.org/mailman/listinfo/enet-discuss
>>    
>>




More information about the ENet-discuss mailing list