⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _features.txt

📁 一个通讯程序源码
💻 TXT
📖 第 1 页 / 共 3 页
字号:
.*s 2 "Online Interactive Command Help"The ECU help command presents a display of interactive commands.  The useris then prompted to enter a command name for further, Unix-style"usage" information..*s 2 "Multiscreen Event Alarm"On an SCO machine, by using the .B BN(bell notify) interactive command, an audible alert is sent to allmultiscreens when an ASCII BEL (bell) is received or when a filetransfer completes.  An additional option causes an alert when ANYdata is received from the line.  This makes it simple to do work onother multiscreen consoles and be alerted when attention to thecommunications session is required.For instance, the Berkeley 4.x Unix utility "talk" rings the bell whenanother user wishes an interactive chat mode.  BSD "biff" rings the bellwhen incoming mail is received.  Scripts or commands at remote sites canbe configured to ring the bell as in:.DS Imake foo bar; bell; make more_stuff; bell;.DEto call attention to the ECU user when work is being doneon other multiscreen consoles.This feature is only available when you are running ECU from a multiscreen..*s 2 "Built-in Modem Dialer"The built-in ECU dialer supports modems which use the .BHayes-style AT command set or most variants.R.B thereof .It is used when HoneyDanBer UUCP is not installed or when there is noentry in the /usr/lib/uucp/Devices file for the selected outgoing line.(For more information, see the later section titled "HoneyDanBer UUCPInterface".)The built-in dialer uses files in the ecu library directory whichcontains modem initialization information.  Modem initializationfilenames are made from concatenating the tty name with ".mi".  Forinstance, tty1a's initialization file is named "tty1a.mi".Commands for initializing the modem and for dialing may be specified ina very flexible manner.  Separate init and dial strings for each legalbaud rate, a single pair of strings for all baud rates or a combinationmay be specified..DF L.hl.ce 1Sample Modem Initialization Files#+-----------------------------------------------------------#  tty1a.mi - Microcom AX/9624c#------------------------------------------------------------init_>2400:ATS11=47X4S0=0S7=30\eQ1\eX1\eN3   # baud rates > 2400init_default:ATS11=47X4S0=0S7=30\eQ0\eX0\eN0 # other baud ratesdial_default:ATDT#+-----------------------------------------------------------#  tty2d.mi - USR Courier 2400#------------------------------------------------------------init_default:ATS11=47 X4 S0=0 S7=32dial_default:ATDT.DE.*s 2 "File Transfer"ECU supports numerous file transfer protocols: as of this writing,XMODEM, XMODEM/CRC, XMODEM-1K, YMODEM/CRC Batch, ZMODEM/CRC-16,ZMODEM/CRC-32, C-Kermit and SEAlink are supported.  `Although a seamless interface(there's some yuppie marketing newspeak) is provided to the user,transfer is facilitated by executing external programs.Kermit support requires you to obtain C-Kermit version 5A or later.You may also patch C-Kermit 4E to work with ECU (Thepatch information is available in the ckermit subdirectory of theECU release).  C-Kermit 5 is in beta release as of this writingand supports ECU without modification.XMODEM, YMODEM and ZMODEM transfers (thanks to modified public domainprograms by Chuck Forsberg) present dynamic status displays similar tothe following:.DS L .-[ ecusz 3.20 ]-- /tmp -------------------------------. |  ZMODEM/CRC32   data rate ~= 900 ch/sec (94%)     T  | |  File 1   of 1  : /t/ecu320cpio.Z                    | |  File position:  617472 length: 915263  -rw-r--r--   | |  Total transaction 915263 bytes (xfer time ~= 17:29) | |  tx: D32 ZCRCG 1024          rx: HEX ZACK  605184    | |  Comm I/O: rx 917       tx 650041   bytes            | |  Baud rate: 9600 BINARY blklen: 1024 comm mode: RAW  | |  Time: started: 13:39:34 this file: 13:39:35 window: | |  13:51:34 elapsed: 00:12:00         00:11:59 +12288  | |  Errors: this file: 2   total: 2  files skipped: 0   | |                                                      | |  This file 67%, transaction 67% complete             | |  Remote: CRC32 y  duplex y  continuous stream y      | `- Connected to tridom --------------------------------'.DEDuring file transfer, data rates are displayed from time to time.While the figures may vary significantly during the transfer, bear in mindthe calculations are for actual data throughput, measured as total DATAcharacters transferred from the time the file is opened until it is closed.So, if the data rate appears to be low at the start of the transferand increase over time, perhaps it took a significant amount of time forthe receiver to open it's file or to respond to protocol startup stimuli.If the data rate appears to be higher at the beginning and becomelower over time, perhaps flow control is being invoked.  A suddenreduction in the "last file" or "transaction" data rate over thein progress rate reflects the time required to close files, operatethe protocol or to skip files (in the case of ZMODEM).  If any filesare skipped in a session, you may be sure the transactionrate will be (perhaps much) lower than the per-file rate.On some systems and driver options, sundry driver statistics aredisplayed during X/Y/ZMODEM transfers.  For instance, in the abovedisplay from a Sun session.  the driver's current output and inputqueue depths and input queue space available are displayed along withthe current status of RTS and CTS.  While such gay banter is rightlyrelegated to the "bell and whistle" category, it does provide a rareinsight into driver operation.  The ECU FAS/i driver for 386 systems(after Uwe Doering's FAS driver) provides other information..DS L        |  Output queue depth       0  RTS T  CTS T                |        |  Input queue depth       10  Input queue avail    490    |.DE.*s 2 "Automatic ZMODEM Receive"ECU in the interactive mode (no procedure executing) can interpret aSUB, 'B', '0', '0' receive data sequence as a ZMODEM ZRQINIT frame andautomatically begin a ZMODEM receive operation.  The.B autorzinteractive and procedure commands controlthis feature.  By default, this feature is turned on..*s 2 "Procedures (Scripts)"A powerful, language-style procedure language is incorporatedinto ECU.  The language is described in the companion "ProcedureLanguage" manual.Procedures are files of programmatic instructions written inthe ECU procedure language invoked explicitly by the.B do interactive command or automatically by ECU functions described below.Procedures are invoked by.I name ,and result in execution of the file.I name .ep.The file is searched for in the current directory.  If not found there,ECU checks your personal .ecu subdirectory.  If not there, the ECU library "ep" subdirectory is searched (e.g.,.I /usr/local/lib/ecu/ep )..*s 3 "Initial (Startup) Procedure"An.Binitial procedure.Rmay be be specified to ECU either to initialize an interactivesession or to execute an entirely unattended or "batch"communication session.  Refer to the section on command switches ("-p")..*s 3 "Dialing Procedure"When a named dialing entry is selected for calling, if a procedurecan be located using the above mentioned search sequence whose name matchesthe name of the directory, then all of the usual ECU built-in dialingprocedure is bypassed and the procedure is used.  For details, refer toother sections related to dialing..*s 3 "Other Special Procedures"Other special procedures may be invoked when.BL.LIecu starts up (_rc.ep).LIa connection is established (_connect.ep).LIan attempted connection fails (_connfail.ep).LIa connection is terminated with the hangup command (_hangup.ep).LESee the ECU procedure manual for details..*s 2 "DCD (Carrier) Watcher"ECU can be instructed to monitor DCD (carrier) status on anytty line whose driver honors dynamic manipulation of the CLOCALcontrol bit.  ECU may be instructed to ignore DCD (the default state).In such a state, if carrier is lost after a connection has beenmade, ECU is unaware the connection has been lost.  An interactive.B statcommand will show the connection still active.When the DCD watcher is enabled, loss of carrier will causethe hangup command processing to automatically be executed(including execution of the special procedure_hangup.ep if any can be found).An additional mode is available which, in addition to the hangupprocessing,  causes ecu to terminate execution.The.B dcdwatchinteractive and procedure commands control this feature.In addition, each dialing directory entry has a fieldspecifying whether or not the DCD watcher status is to bechanged upon connecting to the remote system and if so,to what state.  Refer to the description of the.B dcdwatchand.B dialcommands for details..*s 2 "Home Directory Files"ECU control files reside in the .ecu subdirectory ofeach user's home directory.  For example, in home directory /usr/wht:.DS I   /usr/wht/.ecu/dir          CD interactive command history file*  /usr/wht/.ecu/keys         function key mapping*  /usr/wht/.ecu/funckeymap  function key mapping   /usr/wht/.ecu/log          connect, file transfer history   /usr/wht/.ecu/phone        default dialing directory*% /usr/wht/.ecu/colors       colors used by ECU.DE* The ecu library directory (normally /usr/local/lib/ecu) is searched forthe "keys", "colors" and "funckeymap" file if a personal versioncannot be found.% The "colors" file does not apply to systems on which color is not yetsupported.The .ecu directory is searched for an ECU procedure file(having the '.ep' extension) if the procedure file cannot be found inthe current working directory..*s 2 "Lock Files"ECU maintains lock files in the standard directory in accordance with theHoneyDanBer UUCP conventions (ASCII pids as 10-character stringsfollowed by a newline).  If porting to a machine with old-styleinteger pids, grep for HONEYDANBER in the sources for hints onwhere changes are needed.Standard lock directories for versions supported as of this writing:.DS I   SCO               /usr/spool/uucp   ISC               /usr/spool/locks   SunOS, SVR4       /var/spool/locks.DE.ul 1World write access to this directory must be in effect. See the later section titled "HoneyDanBer UUCP Interface"..*s 2 "Dial-In/Dial-Out Line Support"On SCO XENIX and UNIX 3.2 systems,ECU works with the SCO getty to support dialing out on a lineenabled for login.  After use of the line is complete,ECU signals the system to restore incoming call status tothe line.See the later section titled "HoneyDanBer UUCP Interface".This facility is not supported in other environments as of this writing.Scan the distribution README.* files for any updates..*s 2 "Tools"Commands are provided for conversion of hexadecimal or decimal numbersto and from ASCII equivalents.  For example, 26(10) == 0x1a == ^Z == SUB.For details, refer to the description of the.B XAand.B AXinteractive commands..*s 2 "Shared Memory 'Friend' Interface"ECU maintains a copy of the received screen image (80 x 43maximum) and otherinformation in its shared memory segment.  Normally, thisinformation is used only by the transmitter and receiverprocess.  However,  ECU supports the concept of a.B friendprocess which may access the shared memory segment, performarbitrary auxiliary operations, read from and write to theattached communications line and communicate resulting informationor status to an ECU procedure via a 1024-byte "friend"data area in the shared memory segment.The procedure language supports the friendprocess concept through commands and functions which allow.BL.LIpassing the ECU shared memory segment id (%shmid) to a calledprogram,.LIreading a single character or string of characters fromscreen memory,.LIreading cursor position information and.LIreading and writing of characters, short or long integers andstrings in the 1024-byte "friend" shared memory data area..LEThe algorithm for obtaining the shared memory segment key is.DS L0xEC000000L + transmitter process id.DEThus a "friend" process may either use a %shmid .Bshared memory key.Rpassed as an argument or obtain the .Bshared memory key.Rby using:.DS Lkey_t shmkey = 0xEC000000L | getppid();.DEThis facility allows batch and interactive applicationsto be developed with C programs which would betedious or impractical to implement with procedure language alone.For more information, refer to the shared memory header file.B ecushm.h ,the.B ecufriendsubdirectory of the software releaseand to the description of the.B %shmid ,.B %curyand.B %curxprocedure functionsand the.B getfand.B putfprocedure commands.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -