ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

tnclass.h
Go to the documentation of this file.
00001 #pragma once
00002 
00003 #include <windows.h>
00004 #include "tnconfig.h"
00005 #include "ttelhndl.h"
00006 #include "tncon.h"
00007 #include "tnerror.h"
00008 #include "tparams.h"
00009 #include "keytrans.h"
00010 #include "ansiprsr.h"
00011 #include "tcharmap.h"
00012 #include "tnclip.h"
00013 #include "tmouse.h"
00014 #include "tmapldr.h"
00015 
00016 class Telnet {
00017 public:
00018     // create a telnet instance
00019     Telnet();
00020     // open a connection return on break/quit
00021     Telnet(const char * szHost1, const char *strPort1);
00022     ~Telnet();
00023 
00024     // open a connection return on break/quit
00025     int Open(const char *szHost, const char *strPort = "23");
00026     int Close();                // close current connection
00027     int Resume();               // resume current session
00028 
00029     // changes to the keymap profile in the file
00030     int LoadKeyMap( const char * file, const char * name);
00031     void DisplayKeyMap();       // display available keymaps
00032     int  SwitchKeyMap(int);     // switch to selected keymap
00033 private:
00034     SOCKET Connect();
00035     void telSetConsoleTitle(const char * szHost);
00036     void DoInit();
00037 
00038     SOCKET Socket;
00039     char strPort[32]; // int iPort;
00040     char szHost[127];
00041     volatile int bConnected;
00042     volatile int bWinsockUp;
00043     volatile int bNetPaused;
00044     volatile int bNetFinished;
00045     volatile int bNetFinish;
00046 
00047     // The order of member classes in the class definition MUST come in
00048     // this order! (Paul Brannan 12/4/98)
00049     TNetwork Network;
00050     TCharmap Charmap;
00051     KeyTranslator KeyTrans;
00052     TMapLoader MapLoader;
00053     TConsole Console;
00054     TTelnetHandler TelHandler;
00055     TelThreadParams ThreadParams;
00056     Tnclip Clipboard;
00057     TMouse Mouse;
00058     TScroller Scroller;
00059     TANSIParser Parser;
00060 
00061     HWND hConsoleWindow;                // Paul Brannan 8/10/98
00062     LPARAM oldBIcon, oldSIcon;          // Paul Brannan 8/10/98
00063     bool iconChange;
00064 
00065     HANDLE hThread;                     // Paul Brannan 8/11/98
00066     HANDLE hProcess;                    // Paul Brannan 7/15/99
00067 
00068     void NewProcess();                  // Paul Brannan 9/13/98
00069     void SetLocalAddress(SOCKET s);
00070 };

Generated on Sun May 27 2012 04:17:17 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.