|
Thanks Scott. As I understand it, your program sends a request to the terminal to send the latest screen? How does it know which terminal to send it to? It sounds like I could modify my bridge program to send the request to the terminal but would the AS/400 know what to do with it? Albert ----- Original Message ----- From: "Scott Klement" To: "Midrange Systems Technical Discussion" Subject: Re: 5250 telnet keepalive Date: Tue, 20 Sep 2005 13:39:59 -0500 (CDT) > It works quite well except for the timeout problem. After 15 > minutes or so of inactivity the connection just hangs and I have > to disconnect and reconnect. It "hangs"? Have you looked to see if something is wrong with your proxy program? Maybe it has a bug that's causing it to hang? I can't imagine that the connection hanging is a timeout problem. > I would like to know if there is some UDDS string (like a poll) that my > bridge program could send to either the AS/400 or the terminal emulation > program which would keep the connection alive but would not effect the > job in any way. Sure... just tell the terminal to send you the contents of the screen on a regular basis. You can use the signal APIs to send you a signal on a regular interval, and the DSM APIs (which I prefer over UDDS) to request the contents of the screen. I've been experimenting with writing an RPG program that works like an old MS-DOS TSR (Terminate and Stay Resident) program. This seems like a good application for something like that. You run the program. It does it's setup and then ends, but remains in memory. A signal wakes it up every second or so, and it reads the contents of the screen, causing the traffic to flow over the network. To give it a try, download the following code, and put it in the QRPGLESRC file on your iSeries: http://www.scottklement.com/rpg/traffic.zip Compile the program (requires V5R1 since it's written in free format): CRTBNDRPG TRAFFIC SRCFILE(mylib/QRPGLESRC) DBGVIEW(*LIST) Call the program: CALL TRAFFIC from here on, it'll read your screen every second. (Generating network traffic that should prevent inactivity from ever being a concern). When you want to stop it from polling your screen, type: RCLACTGRP TRAFFIC Good luck -- This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/midrange-l or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.