Re: [libuv] Is it safe to use static or pre-allocated buffer when receiving data form a single loop?

2016-09-21 Thread Saúl Ibarra Corretgé
On 09/21/2016 06:31 AM, Sunny wrote: > Hi everyone, I'm working on a simple network application and I'm new to > the libuv, so I have this noob question to ask > > If I have an application which use only one loop, with many tcp/udp > handler registered on it, is it safe to use static buffer in

[libuv] Is it safe to use static or pre-allocated buffer when receiving data form a single loop?

2016-09-21 Thread Sunny
Hi everyone, I'm working on a simple network application and I'm new to the libuv, so I have this noob question to ask If I have an application which use only one loop, with many tcp/udp handler registered on it, is it safe to use static buffer in uv_alloc_cb like this? static char