Ben Greear 38d2afcefb telnet: Allow programatic use of telnet.
The main change is to allow input from user-specified methods,
when they are specified with CURLOPT_READFUNCTION.
All calls to fflush(stdout) in telnet.c were removed, which makes
using 'curl telnet://foo.com' painful since prompts and other data
are not always returned to the user promptly.  Use
'curl --no-buffer telnet://foo.com' instead.  In general,
the user should have their CURLOPT_WRITEFUNCTION do a fflush
for interactive use.

Also fix assumption that reading from stdin never returns < 0.
Old code could crash in that case.

Call progress functions in telnet main loop.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2010-04-29 08:55:11 +02:00
..
2001-12-04 16:33:40 +00:00
2010-04-14 17:12:34 +02:00
2010-02-14 19:40:18 +00:00
2010-03-24 11:02:54 +01:00
2010-03-24 11:02:54 +01:00
2010-03-24 11:02:54 +01:00
2010-03-24 11:02:54 +01:00
2010-03-24 11:02:54 +01:00
2010-03-24 11:02:54 +01:00
2010-03-24 11:02:54 +01:00
2010-03-24 11:02:54 +01:00
2010-03-24 11:02:54 +01:00
2010-03-24 11:02:54 +01:00
2010-03-24 11:02:54 +01:00
2010-03-24 11:02:54 +01:00
2010-02-14 19:40:18 +00:00
2010-02-14 19:40:18 +00:00
2010-03-24 11:02:54 +01:00
2010-02-16 13:32:45 +00:00
2010-03-24 11:02:54 +01:00
2010-03-24 11:02:54 +01:00
2010-03-24 11:02:54 +01:00
2010-03-24 11:02:54 +01:00
2010-03-24 11:02:54 +01:00
2009-05-08 19:09:36 +00:00
2010-03-24 11:02:54 +01:00
2010-03-24 11:02:54 +01:00
2010-03-24 11:02:54 +01:00
2010-03-24 11:02:54 +01:00
2010-03-24 11:02:54 +01:00