Changeset 636 for FOIAVistA/tag/r/RPC_BROKER-XWB
- Timestamp:
- Dec 4, 2009, 8:26:01 PM (15 years ago)
- Location:
- FOIAVistA/tag/r
- Files:
-
- 4 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
FOIAVistA/tag/r/RPC_BROKER-XWB/XWBDLOG.m
r628 r636 1 XWBDLOG ;ISF/RWF - Debug Logging for Broker ; 12/08/2004 08:541 XWBDLOG ;ISF/RWF - Debug Logging for Broker ;08/04/2004 13:56 2 2 ;;1.1;RPC BROKER;**35**;Mar 28, 1997 3 3 Q … … 5 5 ;Setup the log, Clear the log location. 6 6 LOGSTART(RTN) ;Clear the debug log 7 Q:'$G(XWBDEBUG)8 7 K ^XTMP("XWBLOG"_$J) 9 8 S ^XTMP("XWBLOG"_$J,0)=$$HTFM^XLFDT($$HADD^XLFDT($H,7))_"^"_$$DT^XLFDT -
FOIAVistA/tag/r/RPC_BROKER-XWB/XWBRW.m
r628 r636 1 XWBRW ;ISF/RWF - Read/Write for Broker TCP ;08/03/2004 15:09 2 ;;1.1;RPC BROKER;**35**;Mar 28, 1997 1 XWBRW ;ISF/RWF - Read/Write for Broker TCP ;8/16/07 09:33 2 ;;1.1;RPC BROKER;**35,49**;Mar 28, 1997;Build 4;WorldVistA 30-Jan-08 3 ;Modified from FOIA VISTA, 4 ;Copyright 2008 WorldVistA. Licensed under the terms of the GNU 5 ;General Public License See attached copy of the License. 6 ; 7 ;This program is free software; you can redistribute it and/or modify 8 ;it under the terms of the GNU General Public License as published by 9 ;the Free Software Foundation; either version 2 of the License, or 10 ;(at your option) any later version. 11 ; 12 ;This program is distributed in the hope that it will be useful, 13 ;but WITHOUT ANY WARRANTY; without even the implied warranty of 14 ;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 ;GNU General Public License for more details. 16 ; 17 ;You should have received a copy of the GNU General Public License along 18 ;with this program; if not, write to the Free Software Foundation, Inc., 19 ;51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 3 20 Q 4 21 ; … … 15 32 . S S=L-$L(R),R=R_$E(XWBRBUF,1,S),XWBRBUF=$E(XWBRBUF,S+1,999999) 16 33 . I ($L(R)=L)!(R[$C(4))!(C>TO) S DONE=1 Q 17 . R XWBRBUF :2 S:'$T C=C+1 S:$L(XWBRBUF) C=034 . R XWBRBUF#S:2 S:'$T C=C+1 S:$L(XWBRBUF) C=0 I +$DEVICE S DONE=1 18 35 . I $G(XWBDEBUG)>2,$L(XWBRBUF) D LOG^XWBDLOG("rd: "_$E(XWBRBUF,1,252)) 19 36 . Q -
FOIAVistA/tag/r/RPC_BROKER-XWB/XWBTCPL.m
r628 r636 1 XWBTCPL ;SLC/KCM - Listener for TCP connects ; 12/09/2004 07:331 XWBTCPL ;SLC/KCM - Listener for TCP connects ;08/25/2004 12:08 2 2 ;;1.1;RPC BROKER;**1,7,9,15,16,35**;Mar 28, 1997 3 3 ;ISC-SF/EG - DHCP Broker … … 136 136 . D UPDTREC(XWBTSKT,6) ;updt RPC BROKER SITE PARAMETER record as STOPPED 137 137 . Q 138 S XWBDEBUG=$G(XWBDEBUG)139 138 ;Set new trap 140 139 S $ETRAP="Q:($ESTACK&'$QUIT) Q:$ESTACK -9 S $ECODE="""" G RESTART^XWBTCPL" -
FOIAVistA/tag/r/RPC_BROKER-XWB/XWBTCPM.m
r628 r636 1 XWBTCPM ;ISF/RWF - BROKER TCP/IP PROCESS HANDLER ; 01/04/2006 62562.562282 ;;1.1;RPC BROKER;**35,43 **;Mar 28, 19971 XWBTCPM ;ISF/RWF - BROKER TCP/IP PROCESS HANDLER ;8/29/07 22:11 2 ;;1.1;RPC BROKER;**35,43,49**;Mar 28, 1997;Build 6 3 3 ;Based on: XWBTCPC & XWBTCPL, Modified by ISF/RWF 4 4 ;Changed to be started by UCX or %ZISTCPS … … 38 38 ;GTM specific code 39 39 S @("$ZINTERRUPT=""I $$JOBEXAM^ZU($ZPOSITION)""") 40 S XWBTDEV=$P X "U XWBTDEV:(nowrap:nodelimiter )"40 S XWBTDEV=$P X "U XWBTDEV:(nowrap:nodelimiter:ioerror=""TRAP"")" 41 41 S %="",@("%=$ZTRNLNM(""REMOTE_HOST"")") S:$L(%) IO("GTM-IP")=% 42 42 G CONNTYPE … … 44 44 ESET ;Set inital error trap 45 45 S U="^",$ETRAP="D ^%ZTER H" ;Set up the error trap 46 S X="",@^%ZOSF("TRAP") ;Clear old trap 46 47 Q 47 48 ;Find the type of connection and jump to the processing routine. … … 155 156 D ^%ZTER ;%ZTER clears $ZE and $ZCODE 156 157 D LOG("In ETRAP: "_XWBERC) ;Log 157 I (XWBERC["READ")!(XWBERC["WRITE")!(XWBERC["SYSTEM-F") D EXIT HALT158 I (XWBERC["READ")!(XWBERC["WRITE")!(XWBERC["SYSTEM-F")!(XWBERC["IOEOF") D EXIT HALT 158 159 U XWBTDEV 159 160 I $G(XWBT("PCNT")) L ^XUTL("XUSYS",$J,0)
Note:
See TracChangeset
for help on using the changeset viewer.