[ENet-discuss] sending a packet

Lee Salzman lsalzman1 at cox.net
Thu Apr 2 23:31:16 PDT 2009


ENet does not copy the data at all. It simply queues the packet into a list.
You need to use packet->freeCallback to see when it has deleted the packet.

Lee

Marc Rochel wrote:
> Hi Daniel,
>
> I remember a discussing a while back about this. I think the current
> behavior is when you call enet_peer_send it copies the data and you can
> immediately delete yours. Somehow you can change this, but I don't
> remember how so it doesn't copy but instead calls the callback when enet
> doesn't need it anymore.
>
> Best regards
>     Marc
>
> -----Original Message-----
> From: enet-discuss-bounces at cubik.org
> [mailto:enet-discuss-bounces at cubik.org] On Behalf Of Daniel Aquino
> Sent: Donnerstag, 2. April 2009 20:54
> To: Discussion of the ENet library
> Subject: Re: [ENet-discuss] sending a packet
>
> nvm I found ENetPacket->freeCallback in the docs...
>
> On Thu, Apr 2, 2009 at 2:07 PM, Daniel Aquino
> <mr.danielaquino at gmail.com> wrote:
>   
>> If I create a structure to send in the data of a packet.
>>
>> Can I cleanup my data after calling enet_peer_send ?
>>
>>     
> _______________________________________________
> ENet-discuss mailing list
> ENet-discuss at cubik.org
> http://lists.cubik.org/mailman/listinfo/enet-discuss
> _______________________________________________
> 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