Re: [Libevent-users] Using Chunked callback
On Thu, Feb 28, 2008 at 3:28 AM, Lyes Amazouz [EMAIL PROTECTED] wrote: I've seen that in the libevent we have, in the server side, the function evhttp_send_reply_chunk(struct evhttp_request *req, struct evbuffer * buf), and I want to know if buf represents the chunk itself or the whole data that will be sent chunked. Each call of evbuffer_send_reply_chunk() creates a new chunk filled with the data provided in buf. In the client side, we can set a chunked callback function for a request object. Will this function regroup all the sent chunks in a single call to recover the data, or have I to write a loop on it?? If you set up a callback for chunks, it will be called for each chunk received by the client. Otherwise, without a callback, you will get all the data together at the end. Niels. ___ Libevent-users mailing list Libevent-users@monkey.org http://monkeymail.org/mailman/listinfo/libevent-users
Re: [Libevent-users] dns server availability check / google.com
On Wed, Feb 27, 2008 at 07:17:50AM +0100, Florian Lohoff wrote: Hi, while looking into an async dns solution i found the code to recheck dns servers in libevent. I dont think checking for google.com is a very good choice. In the past even ccTLDs have disappeared or start to disappear (.su, .dd, .yu) despite companys renaming, disappearing or having hicups. Actually, looking for google.com isn't a problem here, if I understand correctly. Look at the code in nameserver_probe_callback: it accepts either DNS_ERR_NONE _or_ DNS_ERR_NOTEXIST as an answer meaning that the nameserver is running. In other words, a nameserver that says there is no google is considered just as up as a nameserver that reports what we'd currently expect to see. Does that seem like a sensible argument, or am I missing something? yrs, -- Nick ___ Libevent-users mailing list Libevent-users@monkey.org http://monkeymail.org/mailman/listinfo/libevent-users