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

XWBTCPT.m

Go to the documentation of this file.
  1. XWBTCPT ;SLC/KCM - Test functions for TCP [ 12/05/94 10:45 PM ]
  1. ;;1.0T11;RPC BROKER;;Oct 31, 1995
  1. ;
  1. ECHO(Y,X) ; -- echo string passed as parameter back to client
  1. ; input: X := string passed by client
  1. ; output: Y := same string to be returned
  1. S Y=X
  1. Q
  1. LIST(Y) ; -- return list box with 28 entries
  1. N I
  1. F I=1:1:28 S Y(I)="List Item #"_I
  1. Q
  1. WP(Y) ; -- return text a word processing (50 lines)
  1. N I
  1. F I=1:1:50 S Y(I)="The quick brown fox jumped over the lazy dog."
  1. S Y(51)="End of document."
  1. Q
  1. BIG(Y) ; -- send a 32K string
  1. N I
  1. F I=1:1:320 S $P(Y(I),"D",100)=""
  1. Q
  1. WNP ; -- start Windows Notepad
  1. D STARTAPP^XWBTCPZ("c:\windows\notepad.exe",.ERR)
  1. I $L(ERR) W !,"Error starting Notepad: ",ERR
  1. Q
  1. MSW ; -- start Microsoft Word
  1. D STARTAPP^XWBTCPZ("c:\winword\winword.exe",.ERR)
  1. I $L(ERR) W !,"Error starting MS Word: ",ERR
  1. Q
  1. OE3 ; -- start windowed OE/RR
  1. D STARTAPP^XWBTCPZ("c:\dhcpapps\tcpchart.exe",.ERR,1)
  1. I $L(ERR) W !,"Error starting OE/RR: ",ERR
  1. Q
  1. ZTST ; -- start ZZTEST program
  1. D STARTAPP^XWBTCPZ("c:\dhcpapps\zttest.exe",.ERR,1)
  1. I $L(ERR) W !,"Error starting ZZTEST: ",ERR
  1. Q
  1. CRYPT ; -- test encryption
  1. R "Enter text: ",X
  1. S X=$$NCRYPT^XWBTCPZ(X,"SECRET") W !,"Encrypted: ",X
  1. S X=$$DCRYPT^XWBTCPZ(X,"SECRET") W !,"Decrypted: ",X
  1. Q