B4J Question Telnet application design question for the group.

Gary Miyakawa

Active Member
Licensed User
Longtime User
I’m developing a new program for a bank and they want me to monitor (via Telnet) multiple sites (6-10). I will be registered to these sites and they will send me information as required (so, it is not a polling environment).

I have it working fine for 1 site but before I copy my code 6 times in the same program, I thought there might be an easier way.

Do you have any quick suggest of design ?

Thanks,

Gary M
 

dilettante

Active Member
Licensed User
Longtime User
I agree, especially if this is really Telnet and not just raw TCP connections.

With Telnet you have to implement a certain number of its commands, and if possible negotiate the terminal type to TTY in order to limit the amount of terminal-specific formatting escape sequences (ANSI, VT-100, etc.). This is a lot of code you wouldn't want to duplicate and it is easiest to just encapsulate it in a TelnetClient class.

If you do need that (and I assume you don't or else you have already written the code to handle it) you might look at [VB6] Telnet Client UserControl. It isn't B4J but VB6, however it could save you some work just by being relatively close.
 
Upvote 0
Top