On Tue, Nov 19, 2013 at 11:11 AM, Saúl Ibarra Corretgé <[email protected]>wrote:
> On 11/19/13 4:54 PM, Aaron Boxer wrote: > >> I see that that the library is designed to read from the socket into a >> user-provided buffer >> and make the buffer available to the client in a callback. >> >> Suppose I want to handle reading from the socket: for example suppose I >> want >> to splice the data (on LInux) into a different file descriptor. Or read >> directly >> into another location. Is this possible? If I pass null as the >> alloc_buffer callback, >> can I manage reading from the socket myself? >> >> > Not if you use a tcp/udp/pipe handle, but you can create a socket > yourself, use a poll handle to get notified when it's ready for > reading/writing, and then do the reading yourself. > > > Thanks! Good to know. This library is fantastic, I am really happy I switched from libev/libeio . > Cheers, > > -- > Saúl Ibarra Corretgé > http://bettercallsaghul.com > > -- > You received this message because you are subscribed to the Google Groups > "libuv" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/libuv. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "libuv" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/libuv. For more options, visit https://groups.google.com/groups/opt_out.
