curl-library
PATCH: Allow telnet to be used programatically.
From: Ben Greear <greearb_at_candelatech.com>
Date: Thu, 25 Mar 2010 00:02:26 -0700
Received on 2010-03-25
Date: Thu, 25 Mar 2010 00:02:26 -0700
telnet: Allow programatic use of telnet via libcurl.
The main change is to allow input from user-specified methods,
but in order to be backwards compatible, the user also has to set
the option CURLOPT_FORCE_USE_READFUNC to true.
Also fix assumption that reading from stdin never returns < 0.
Old code could crash in that case.
Call progress functions in telnet main loop.
Patch is attached, please let me know if it needs any improvements.
-- 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-telnet.patch