📄 readme
字号:
virtmodem---------This program produces a virtual modem on a pseudo-tty whichallows calls to be made over a TCP/IP network as if they were over aserial line. It has been written to allow programs which historicallymake use of a serial port and modem to communicate over the internetwithout any modification.When run the program will fork and print the terminal which is being used to simulate the modem. If a -s argument is given to the program this isdisabled and the code does not fork. Instead information and statistics aboutthe calls made are kept and reported to the controlling terminal. This isdesigned to aid in the debugging of connections as it allows individualpackets to be seen as they are sent and received. The idea is to give atextual equivalent of the transmit and receive lights on a modem.Using a program such as kermit the terminal given can now be opened andconnected to as if it were a normal serial line. The programsupports a minimum of Hayes commands; AT and ATZ both do nothing and willsimply cause OK to be echoed back. ATH hangs up the line and causesvirtmodem to quit. ATD is used to make a call.Rather than a phone number ATD takes either a machine name or a dotted quadnumeric address. e.g. ATDvax.york.ac.uk and ATD144.32.128.1 are both valid.Extra arguments are allowed between the ATD and the hostname as long as theyare terminated by a space. e.g. ATDT vax.york.ac.uk is also valid, this isto maintain compatibility with existing dialler software. A successful ATDcommand will result in the program attempting to contact the remote hostusing a TCP/IP connection. The call is normally made to the telnet serviceport number. Should another service be required then this can be specifiedwith a colon after the hostname. e.g. ATDvax.york.ac.uk:smtp will makea call to port 25.If successful the message CONNECT TCP is reported, else NO DIALTONE isreported. Upon completion of a call the far end will drop the connection andNO CARRIER will be reported. Whatever the result of ATD virtmodem willalways quit afterwards in order not to hog the pseudo-tty. The idea isthat virtmodem is started once per call, possibly from an automated script.It should be noted that virtmodem passes raw bytes and thus refuses anyof the local functions which telnet normally performs. This may causesurprising results when contacting such things as SMTP ports where a telnetprogram would normally perform local echo and CR/LF translation.The latest version of virtmodem has many modifications from the original, themost noticeable being the vastly improved performance. The programnow works in large blocks rather than single characters and this has had theeffect of increasing performance by several orders of magnitude. Runningkermit over the link has comparable performance to running kermit on a directTCP/IP connection. The supplied pty_bsd.c source file should work in mostcases, but for machines such as Silicon Graphics which do not have actualtty/pty pairs then the file pty_sgi.c should be used. This has onlybeen tested on Silicon Graphics machines so far, and a Makefile for SGImachines is supplied. This code was developed under NeXTStep, but shouldbe easy enough to port to most other flavours of UNIX - the supplied BSDMakefile has been shown to work on all other flavours of BSD so fartested including NetBSD, SUNOS and Linux.-Pete French. 30/6/95pete@ohm.york.ac.uk
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -