ReactOS  0.4.12-dev-18-gf469aca
tnclass.h
Go to the documentation of this file.
1 #pragma once
2 
3 //#include <windows.h>
4 //#include "tnconfig.h"
5 #include "ttelhndl.h"
6 //#include "tncon.h"
7 //#include "tnerror.h"
8 #include "tparams.h"
9 //#include "keytrans.h"
10 //#include "ansiprsr.h"
11 //#include "tcharmap.h"
12 //#include "tnclip.h"
13 //#include "tmouse.h"
14 //#include "tmapldr.h"
15 
16 class Telnet {
17 public:
18  // create a telnet instance
19  Telnet();
20  // open a connection return on break/quit
21  Telnet(const char * szHost1, const char *strPort1);
22  ~Telnet();
23 
24  // open a connection return on break/quit
25  int Open(const char *szHost, const char *strPort = "23");
26  int Close(); // close current connection
27  int Resume(); // resume current session
28 
29  // changes to the keymap profile in the file
30  int LoadKeyMap( const char * file, const char * name);
31  void DisplayKeyMap(); // display available keymaps
32  int SwitchKeyMap(int); // switch to selected keymap
33 private:
34  SOCKET Connect();
35  void telSetConsoleTitle(const char * szHost);
36  void DoInit();
37 
39  char strPort[32]; // int iPort;
40  char szHost[127];
41  volatile int bConnected;
42  volatile int bWinsockUp;
43  volatile int bNetPaused;
44  volatile int bNetFinished;
45  volatile int bNetFinish;
46 
47  // The order of member classes in the class definition MUST come in
48  // this order! (Paul Brannan 12/4/98)
60 
61  HWND hConsoleWindow; // Paul Brannan 8/10/98
62  LPARAM oldBIcon, oldSIcon; // Paul Brannan 8/10/98
63  bool iconChange;
64 
65  HANDLE hThread; // Paul Brannan 8/11/98
66  HANDLE hProcess; // Paul Brannan 7/15/99
67 
68  void NewProcess(); // Paul Brannan 9/13/98
69  void SetLocalAddress(SOCKET s);
70 };
int LoadKeyMap(const char *file, const char *name)
Definition: tnclass.cpp:139
TCharmap Charmap
Definition: tnclass.h:50
void telSetConsoleTitle(const char *szHost)
Definition: tnclass.cpp:353
TelThreadParams ThreadParams
Definition: tnclass.h:55
int SwitchKeyMap(int)
Definition: tnclass.cpp:149
LPARAM oldBIcon
Definition: tnclass.h:62
TNetwork Network
Definition: tnclass.h:49
HWND hConsoleWindow
Definition: tnclass.h:61
int Open(const char *szHost, const char *strPort="23")
Definition: tnclass.cpp:160
volatile int bWinsockUp
Definition: tnclass.h:42
TMouse Mouse
Definition: tnclass.h:57
volatile int bConnected
Definition: tnclass.h:41
LONG_PTR LPARAM
Definition: windef.h:208
TConsole Console
Definition: tnclass.h:53
HANDLE hThread
Definition: tnclass.h:65
bool iconChange
Definition: tnclass.h:63
volatile int bNetPaused
Definition: tnclass.h:43
char strPort[32]
Definition: tnclass.h:39
void DoInit()
Definition: tnclass.cpp:63
Definition: tnclass.h:16
Definition: tnclip.h:6
LPARAM oldSIcon
Definition: tnclass.h:62
void NewProcess()
Definition: tnclass.cpp:360
HANDLE hProcess
Definition: tnclass.h:66
TScroller Scroller
Definition: tnclass.h:58
~Telnet()
Definition: tnclass.cpp:125
volatile int bNetFinish
Definition: tnclass.h:45
SOCKET Socket
Definition: tnclass.h:38
GLdouble s
Definition: gl.h:2039
SOCKET Connect()
Definition: tnclass.cpp:298
int Resume()
Definition: tnclass.cpp:259
void DisplayKeyMap()
Definition: tnclass.cpp:145
char szHost[127]
Definition: tnclass.h:40
int Close()
Definition: tnclass.cpp:226
TMapLoader MapLoader
Definition: tnclass.h:52
volatile int bNetFinished
Definition: tnclass.h:44
Definition: name.c:36
void SetLocalAddress(SOCKET s)
Definition: tnclass.cpp:370
UINT_PTR SOCKET
Definition: winsock.h:47
Telnet()
Definition: tnclass.cpp:100
TTelnetHandler TelHandler
Definition: tnclass.h:54
Definition: tmouse.h:6
TANSIParser Parser
Definition: tnclass.h:59
Tnclip Clipboard
Definition: tnclass.h:56
Definition: fci.c:126
KeyTranslator KeyTrans
Definition: tnclass.h:51