Mail Archives: djgpp/1998/06/03/21:51:33
| Message-ID: | <3575DC89.228A7724@rogers.wave.ca>
|
| From: | Shaun Jackman <sjackman AT rogers DOT wave DOT ca>
|
| Organization: | ARC Technologies
|
| MIME-Version: | 1.0
|
| Newsgroups: | comp.os.msdos.djgpp
|
| Subject: | Interface via Telnet
|
| Lines: | 14
|
| Date: | Wed, 03 Jun 1998 23:29:13 GMT
|
| NNTP-Posting-Host: | cr549111-a.surrey1.bc.wave.home.com
|
| NNTP-Posting-Date: | Wed, 03 Jun 1998 16:29:13 PDT
|
| To: | djgpp AT delorie DOT com
|
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I want to write a program that gets input from a telnet site, and
responds with data.
Does RSXNTDJ support something like this? Where should I get started?
I envision something like
int main() {
port* telnet;
open_port(port, "127.0.0.1", TELNET);
if(getch_port(telnet) == '!')
write_port(telnet, "!?!");
return 0;
}
Or what have you.
Can it be this easy, or am I looking at a steep learning curve?
Thanks for your time,
Please reply by e-mail as well if possible,
Shaun Jackman
sjackman AT home DOT com
- Raw text -