|
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 TRAFFICfrom 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
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.