cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: PATCH: Allow telnet to be used programatically.

From: Ben Greear <greearb_at_candelatech.com>
Date: Mon, 05 Apr 2010 11:01:44 -0700

On 04/04/2010 02:14 PM, Daniel Stenberg wrote:

> As long as when _not_ using any set callbacks it would behave closely to
> how it worked before I'm fine with it.

Turns out, telnet on original curl didn't always flush stdout, so there
were still issues when using it interactively. Here's a patch that flushes
stdout when needed, and uses flags based on users setting read or write
callback instead of comparing function pointers or requiring a new
setopt.

Seems to pass make-test as well as handle custom read/write callbacks
set by my program.

Let me know what you think...I'll send an official git patch
if you concur with these changes.

Thanks,
Ben

-- 
Ben Greear <greearb_at_candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2010-04-05