Hi, I'm want to write a program that pass characters unbuffered to a second
program (as if you had typed directly into the second program) and will
relay characters that the remote program sends (as if the second program were
wrting directly to stdout and stderr). I've checked the faq about unbuffered
input but while I can relay key presses to the second program I cannot get them
back. I want the program to respond immediately to traffic in either direction -
so I figure I must use poll(), but if the program is to respond immediately
doesn't that mean that the I/O of the second program will be effected ?
I'm sure someone must have a template for such a program.
Ultimately, I'm hoping to write a frontend that will allow me to use Zmodem
to capture what comes through from telnet (can't use ftp cos final jump is
across dial in line). Also a command preprocessor that gives VMS/4dos like
editing facilities to command lines.
If anyone has such a template or program already using such a design could
you get in touch. Thanks a lot.
Alexis