× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




Let me be more specific about the question:
- In my program (again using Albert's TNAPI program as base), after it
opens the socket connection to the telnet port, it sends a string of
special characters to start a VT100 conversation.  I'm assuming that
this special string of character is basically asking AS400 to talk with
this client program using the VT100 protocol.

Maybe? If you told me what the string is, I could tell you what it means... I don't have the energy to find/download/read Albert's code.

- Are you saying that there is another special string of character that
I can send to the telnet server to request AS400 to talk with this
client program using 5250 protocol?

Yes, it's possible to negotiate the 5250 protocol over a telnet session (That's what TN5250 is, 5250 over telnet. The TN in TN5250 stands for Telnet).

However, keep in mind that, unless you're talking to an iSeries (or AS/400 or System i5) system, it probably isn't designed to handle 5250 terminals. Almost every telnet server supports VT100, but 5250 is rare outside the IBM Midrange world. I thought you were connecting to a "paging server" (though I'm not entirely sure what that is) rather than an iSeries system.

I'd suggest that you use basic NVT support if possible, or VT100 if not possible.

Though, when I've done stuff like this (primarily to connect to Unix machines and run commands on them) I didn't bother with coding all of the VT100 sequences, I just did find/response strings. Your way is much more robust, but I guess I didn't need that, I just wanted to be able to write it and get it running quickly.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.