Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: XMCDNTI

XMCDNTI.m

Go to the documentation of this file.
  1. XMCDNTI ;(HINES ISC)/EEJ-NT COMMUNICATIONS DIAGNOSTICS ; 3/28/95 9:00 AM ; [ 12/05/95 2:36 PM ]
  1. ;;7.1;Mailman;**1003**;OCT 27, 1998
  1. ;;7.1;MailMan;**8**;Jun 02, 1994
  1. ;IHS/MFD IHS version of XMCDNT
  1. ; modified to loop and use parameter passing for silent calls
  1. ;EEJ,hines ISC. Will test mailers in other domains for TCP/IP
  1. S PORT=3601 ;IHS standard mailer socket port
  1. START ;
  1. S TALK=1 ; interactive flag
  1. W !,"TCP/IP tester using port "_PORT D G END:ZHOST=""
  1. .W !!,"Enter the TCP/IP address of remote site: "
  1. .R ZHOST
  1. W !!,"Testing...",! H 1
  1. D ENT(ZHOST,PORT) K ZHOST G START
  1. END K PORT,ZHOST,KEY,TALK Q
  1. ENT(ZHOST,PORT) ; enter here for silent call, KEY and QF returned
  1. ; return var QF=0 attempt was successful
  1. ; QF=1 mailer not listening at requested site
  1. ; QF=2 could not open device 56
  1. N ZANSWER
  1. O 56::10 E S QF=2 Q
  1. U 56::"TCP"
  1. W /SOCKET(ZHOST,PORT) S KEY=$KEY
  1. U 56 R ZANSWER:30
  1. I $D(TALK) U 0 W !,"$KEY=",KEY
  1. I ZANSWER["220" S QF=0
  1. E U 0 S QF=1 I $D(TALK) W !,"No answer from mailer at ",ZHOST
  1. U 0 I $D(TALK),QF=0 W !,ZANSWER," Successful."
  1. C 56 Q
  1. 25 S PORT=25 G START ;standard mailer socket port for SMTP