TERMSERV.DOC
资源名称:ertos.rar [点击查看]
上传用户:sunrenlu
上传日期:2022-06-13
资源大小:1419k
文件大小:2k
源码类别:
操作系统开发
开发平台:
DOS
- TERMSERV 1.1 - an example terminal server
- Copyright (c) 1990, 1999 Erick Engelke
- TERMSERV.EXE (in binary form) is distributed freely in the hope that it
- may prove interesting or useful, but with no warrantee of any kind.
- Purpose
- =======
- Termserv allows incoming TELNET sessions direct access to serial
- ports in the local machine.
- So one might hook up four modems and use this to TELNET to the modem
- pool. Or one may connect to the serial line of a network switch
- and use this program to access the switch's console.
- This program also includes an FTP server and a Web server, including
- real-time generation of a usage graph.
- Finally, this program will optionally Email to a specified Email address
- each time it is restarted, and SYSLOG entries on restart, and as each
- connection arrives and later departs.
- Configuration
- =============
- Edit the TCP.CFG file and set the following parameters:
- [settings]
- ip=x.x.x.x dotted IP address of this station, or BOOTP
- netmask=255.255.255.0 or whatever is the appropriate network mask
- gateway=x.x.x.x dotted IP address of the router
- nameserver=x.x.x.x dotted IP address of the name server
- smtp.gateway=x.x.x.x dotted IP address of an Email relay host
- smtp.hostname=blah.blah DNS name for this machine, required by
- many SMTP servers, must be set correctly
- ftpd.password = "frog" any case sensitive password for your FTP service
- email.notify = "erick@ertos.com" the Email address of recipient
- syslog.host = x.x.x.x option host to receive our syslog information
- userid=joe userid/password for web access
- password=blow
- [com1] repeat this section for com1 through com4
- speed=9600
- irq=4
- Programming
- ===========
- This is a multithreaded program using the commercial eRTOS development
- system. eRTOS is great for developing embedded network and/or serial
- applications - this program demonostrates both network and serial i/o
- and is actually one of the example projects.
- This entire program took less than three hours to write. The non-web
- part is two printed pages of C, and the web part (including graphics)
- is another two pages. eRTOS includes code to do graphics, and charts.
- For more information about eRTOS, see http://www.ertos.com