I belong to those that learn by trying and failing.
I have therefore taken up the task to write my own terminal emulator.
The project, should it ever come to life, will be a replica of the VanDyke SecureCRT.
It should support both Telnet & SSH protocols, and if things go well, perhaps more.
At the moment I am working on the easiest of them, the Telnet.
The application is an MFC MDI and here is where I need your advice.
How would it be best to structure it?
-
Create one Document Template for each protocol?
This seems a terrible waste, since most of the code will be the same. -
Should everything be done in the Document class?
And have the View only for display? -
Or have the View do all the work of connecting, reading user input and displaying server output?
-
Should there be two Views? One for each protocol?
As far as I can understand, this is not something done easily
and the best way to do it, brings me back to the two Document Templates scenario.
I have written a working command line telnet client and
at the moment I’ve reached the point where I need to decide how to proceed with the windows one.
Thanks in advance for your help and advice.