V
veydel
Has anyone been able to implement it on Windows in such way that the
program can be started from a telnet session, not just from a command
prompt in a native pseudo-DOS window? I tried all kinds of things, but non
worked. Conio.h _kbhit does not work on a redirected stdin, thus it seems
that low level IO library is out. Streams library functions. such as getc,
and scanf block until there's input (by design). Win32 lib (CreateFile,
etc) don't seem to allow asynchronous IO on the handle obtained with
GetStdHandle for the console. Other functions that operate on HANDLEs,
either only do sync IO or fail when called (only in 'telnet' execution
mode, of course). Functions that work on sockets (winsock2) refuse to deal
with file descriptors from other libabries... Does this sound crazy or
what? I hope that maybe I missed something. If you know the solution,
please, help and I promise you a 12-pack of Corona!
Vik
program can be started from a telnet session, not just from a command
prompt in a native pseudo-DOS window? I tried all kinds of things, but non
worked. Conio.h _kbhit does not work on a redirected stdin, thus it seems
that low level IO library is out. Streams library functions. such as getc,
and scanf block until there's input (by design). Win32 lib (CreateFile,
etc) don't seem to allow asynchronous IO on the handle obtained with
GetStdHandle for the console. Other functions that operate on HANDLEs,
either only do sync IO or fail when called (only in 'telnet' execution
mode, of course). Functions that work on sockets (winsock2) refuse to deal
with file descriptors from other libabries... Does this sound crazy or
what? I hope that maybe I missed something. If you know the solution,
please, help and I promise you a 12-pack of Corona!
Vik