Click here to Skip to main content
Licence 
First Posted 22 Nov 1999
Views 152,184
Bookmarked 40 times

NT Telnet server and client

By | 22 Nov 1999 | Article
CTelnetView is a class derived from CView that implements a telnet client session with history.
  • Download client source - 22 Kb
  • Download server source - 22 Kb

    Sample Image

    The Telnet Client view

    CTelnetView is a class derived from CView that implements a telnet client session with history. It can be useful in building a remote administration tool or a full-blown telnet client. As implemented the terminal emulation is for TTY only and no escape sequences (VT100) or ANSI control codes are recognized

    The socket instance and connect logic are all resident in the view. As a result an MDI app that allows acces to multiple servers is easily built.

    All of the interesting stuff is in the class CTelnetView and in the Socket class. All of the other classes are exactly as made by the DevStudio Project Wizard EXCEPT that a call to initialize winsock has been added to the App class.

    The Telnet Server

    In addition to the client above I have included a complete Telnet Server (Daemon). I had a hard time finding a good one for NT (it will not work for 95/98, don't know about 2000) so I wrote this one. It is a SINGLE USER server, only one session at a time can be running. It is, however a nice example of how to use the NT CreateProcessAsUser facility.

    It is an NT service. To install use:

    TelnetServer_NT -i
    

    To start it use:

    TelnetServer_NT -s
    

    Acknowledgements

    The TelnetServer project uses the excellent NT Service wrapper class by Joerg Koenig. Thanks for the great code.

  • License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here

    About the Author

    Randy More



    United States United States

    Member



    Sign Up to vote   Poor Excellent
    Add a reason or comment to your vote: x
    Votes of 3 or less require a comment

    Comments and Discussions

     
    You must Sign In to use this message board. (secure sign-in)
     
    Search this forum  
     FAQ
        Noise  Layout  Per page   
      Refresh
    GeneralMy vote of 5 Pinmember(BlackBox) Ethical Hacker5:36 31 Oct '10  
    GeneralError executing link.exe PinmemberRyanOrtegaRios6:44 27 Jan '05  
    Generalno command line prompter in the app window PinmemberLaciPosta1:59 2 Jun '04  
    Generalhelp on using the client PinmemberLaciPosta0:55 2 Jun '04  
    GeneralIs this project still going Pinmemberyacc200021:54 9 Jan '04  
    GeneralIs this project still going PinsussAnonymous21:46 9 Jan '04  
    Generalescape sequence support... Pinsusssunilch23:41 8 Jan '03  
    GeneralRe: escape sequence support... PinmemberAyourk19:09 1 Apr '04  
    Generaltelnet client! Pinmembernairutya11:31 24 Dec '02  
    GeneralRe: telnet client! Pinmembervramalingam11:15 23 Jun '03  
    GeneralMemory usage increases to 100% PinmemberVidhyaa Shankar2:07 28 Feb '02  
    GeneralWow thanks (made it into Dialog Based) PinmemberAnonymous17:27 21 Feb '02  
    Read over all your code and realized the telnet part of the engine
    was small and easy to learn.
     
    I then decided I wanted to make a Dialog Based Telnet Client.
    After a few hours its working and kicks butt Smile | :)
     
    Next step is to weed out the telnet engine into a class that can
    has 3 points of access (read write and exist).
     
    Then take that and make it part of an OpenGL Telnet Client.
     
    Then take that new OpenGL client and use it as the exclusive
    interface to a MUD I made...OpenGL MUD Smile | :) cool.
     
    Thanks for pointing me in the right direction.
    GeneralRe: Wow thanks (made it into Dialog Based) PinmemberAmjad W. Hawash2:42 18 Mar '02  
    GeneralI did dialog based!!!! PinmemberEndaroza2:34 20 Mar '02  
    GeneralRe: I (partially) did dialog based (and i'llshare) PinmemberAmjad W. Hawash2:55 20 Mar '02  
    GeneralRe: I did dialog based!!!! PinmemberAmjad W. Hawash2:43 5 May '02  
    GeneralRe: I did dialog based!!!! PinmemberAnonymous8:40 21 May '02  
    GeneralCode analysers for VC++ PinmemberMangesh Sardesai21:57 3 Jul '01  
    GeneralLicense issues PinmemberChaney21:53 3 Jul '01  
    GeneralRe: License issues PinmemberDaniel Turini3:42 18 Jul '02  
    GeneralError Compiling TelnetServer PinsussThorsten Hering2:06 2 Nov '00  
    GeneralRe: Error Compiling TelnetServer PinmemberEric Shenk10:58 29 May '01  
    GeneralRe: Error Compiling TelnetServer PinmemberAnonymous6:54 13 Aug '01  
    GeneralRe: Error Compiling TelnetServer PinmemberAnonymous2:38 17 Feb '02  
    GeneralRe: Error Compiling TelnetServer PinmemberEiraj Shah0:26 17 Nov '01  

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

    Permalink | Advertise | Privacy | Mobile
    Web04 | 2.5.120529.1 | Last Updated 23 Nov 1999
    Article Copyright 1999 by Randy More
    Everything else Copyright © CodeProject, 1999-2012
    Terms of Use
    Layout: fixed | fluid