-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 06/30/2014 09:57 AM, Iñaki Baz Castillo wrote: > 2014-06-30 9:28 GMT+02:00 Saúl Ibarra Corretgé <[email protected]>: >> https://gist.github.com/saghul/909502cc7367a25c247a >> >> (please post comments on this email thread, not the gist) > > > "A push style API can be emulated on top of this pull style API by > having a request active all the time and rearming it after a read > is performed" > > Does it mean that for just receiving data "all the time" (as the > current behavior) I should call once uv_read() and then call > uv_read() in the uv_read_cb() ? >
Yes. You could bzero the request and reuse it, use the same buffer, whatever you want. - -- Saúl Ibarra Corretgé bettercallsaghul.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iQIcBAEBAgAGBQJTsR2zAAoJEEEOVVOum8BZkUAP/0Pd8wLhZuEWIzhtz0jF+7vS sJm5Wypn7iNLu+edX/b9IqTd5K5ZQ7ivhUbuQ1UtlYIEHIyzgYnSaJZ3mYApVaug 5G1WPNfoqKHzCnMQcJ88koINH73CeZAWCMybtThsfI8VZwE1lP1bfEYhyo+xL/3d fzGf6K9AK/S2z0Pe2y6HWckIAd9uD7V8Mea7RgNpaKYakrm8kPhvRIiUYDpjmL9j XeJF7c7hXK9tLKMXtTk+CYYrwPugVdmYWftg8kcxRjqxzC1xCmOIlAbdmB6V+EUJ YUQ6hKzM+qUrXvrn2X0ouOAIU5veCTg+dDp75v1cWiMAqqJmyOWWQAVe5jD44EDd sPWlJZ6mQ4A7HfTTCRBw1u27LYIHwCw/5W/Fm6PPHBS0n53GAwhZYJOook99KMu5 PyRFdvfgOB7OJOtzAPzBedRudW8EKGig1pHCgKZsC9iAYCA78hmw2FNlAJcEWOiw vqmALUUgjjpWHuud+txj7N5zYj1OqYO54IGgwTOH5bjTDgtQDYRx7dZJUyZv0WH6 rWIAKGVkgzBzwaEz96u33eAzcQ3bQYlpQxpCac9UO5sF6mPNUrWuoHgWy6g8kxdv v1dSm2qiNa4Y24WyNgoLW6uywVtTJ5fLBQKIHXD+791sx3W2E4suEXcVt8BGbXjn Trmo//EyOaSap5kFhQgx =a/Yb -----END PGP SIGNATURE----- -- 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/d/optout.
