DjinnKahn wrote:It doesn't work on Windows : ( Am I the only one using Windows? : )
My Windows skills are lacking, but maybe you can modify a Windows version of http://en.wikipedia.org/wiki/Netcat
to do what is needed:
connect to the IP and TCP port, start the specified program (MyTronBot), and connect its STDIN/STDOUT to the TCP socket (i.e. what the bot writes
to STDOUT is sent to the socket, what is read from the socket is sent to the bot's STDIN), with only one exception: lines that start with "INFO " should
be printed to the screen, instead of being forwarded. nc.exe -e MyTronBot does all of that, except the last part...
And then there's http://en.wikipedia.org/wiki/Cygwin
, which provides the headers and libraries for all the Unix/Posix functions (pipe(), fork(), exec())
used by tcptron.c.