curl-library
Fwd: Re: PATCH: Allow telnet to be used programatically.
Date: Mon, 19 Apr 2010 15:24:22 -0700
-------- Original Message --------
Subject: Re: PATCH: Allow telnet to be used programatically.
Date: Mon, 05 Apr 2010 11:01:44 -0700
From: Ben Greear <greearb_at_candelatech.com>
Organization: Candela Technologies
To: libcurl development <curl-library_at_cool.haxx.se>
CC: Daniel Stenberg <daniel_at_haxx.se>
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
- text/plain attachment: curl-telnet2.patch