1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-08 02:25:06 -05:00
curl/src
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
..
macos Eric-update 2001-12-04 16:33:40 +00:00
.gitignore ignore files generated by 'maketgz' 2010-04-14 17:12:34 +02:00
CMakeLists.txt removed trailing whitespace 2010-02-14 19:40:18 +00:00
config-amigaos.h remove the CVSish $Id$ lines 2010-03-24 11:02:54 +01:00
config-mac.h Added SIZEOF_INT and SIZEOF_SHORT definitions for non-configure systems 2010-02-26 18:32:46 +00:00
config-riscos.h Added SIZEOF_INT and SIZEOF_SHORT definitions for non-configure systems 2010-02-26 18:32:46 +00:00
config-win32.h Added SIZEOF_INT and SIZEOF_SHORT definitions for non-configure systems 2010-02-26 18:32:46 +00:00
curl.rc remove the CVSish $Id$ lines 2010-03-24 11:02:54 +01:00
curlutil.c remove the CVSish $Id$ lines 2010-03-24 11:02:54 +01:00
curlutil.h remove the CVSish $Id$ lines 2010-03-24 11:02:54 +01:00
getpass.c remove the CVSish $Id$ lines 2010-03-24 11:02:54 +01:00
getpass.h remove the CVSish $Id$ lines 2010-03-24 11:02:54 +01:00
homedir.c remove the CVSish $Id$ lines 2010-03-24 11:02:54 +01:00
homedir.h remove the CVSish $Id$ lines 2010-03-24 11:02:54 +01:00
hugehelp.c.cvs make it more obvious what this is by not even trying to show a manual 2003-02-04 18:22:31 +00:00
hugehelp.h remove the CVSish $Id$ lines 2010-03-24 11:02:54 +01:00
main.c telnet: Allow programatic use of telnet. 2010-04-29 08:55:11 +02:00
Makefile.am remove the CVSish $Id$ lines 2010-03-24 11:02:54 +01:00
makefile.amiga Added nonblock.c to the non-automake makefiles (note that the dependencies 2009-07-15 21:49:47 +00:00
Makefile.b32 remove the CVSish $Id$ lines 2010-03-24 11:02:54 +01:00
makefile.dj remove the CVSish $Id$ lines 2010-03-24 11:02:54 +01:00
Makefile.inc removed trailing whitespace 2010-02-14 19:40:18 +00:00
Makefile.m32 encourage users to take latest lib dependencies. 2010-04-24 17:48:09 +02:00
Makefile.netware encourage users to take latest lib dependencies. 2010-04-24 17:48:09 +02:00
Makefile.riscos removed trailing whitespace 2010-02-14 19:40:18 +00:00
Makefile.vc6 replaced wsock32.lib usage with ws2_32.lib in MSVC makefiles 2010-04-20 16:30:10 +02:00
Makefile.Watcom remove the CVSish $Id$ lines 2010-03-24 11:02:54 +01:00
mkhelp.pl replaced tabs with spaces 2010-02-16 13:32:45 +00:00
os-specific.c remove the CVSish $Id$ lines 2010-03-24 11:02:54 +01:00
os-specific.h remove the CVSish $Id$ lines 2010-03-24 11:02:54 +01:00
setup.h remove the CVSish $Id$ lines 2010-03-24 11:02:54 +01:00
urlglob.c remove the CVSish $Id$ lines 2010-03-24 11:02:54 +01:00
urlglob.h remove the CVSish $Id$ lines 2010-03-24 11:02:54 +01:00
vc6curlsrc.dsp Added nonblock.c to the non-automake makefiles (note that the dependencies 2009-07-15 21:49:47 +00:00
vc6curlsrc.dsw Fix CR 2009-05-08 19:09:36 +00:00
version.h remove the CVSish $Id$ lines 2010-03-24 11:02:54 +01:00
writeenv.c remove the CVSish $Id$ lines 2010-03-24 11:02:54 +01:00
writeenv.h remove the CVSish $Id$ lines 2010-03-24 11:02:54 +01:00
writeout.c remove the CVSish $Id$ lines 2010-03-24 11:02:54 +01:00
writeout.h remove the CVSish $Id$ lines 2010-03-24 11:02:54 +01:00