ReactOS 0.4.15-dev-8096-ga0eec98
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
16class Telnet {
17public:
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
33private:
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
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
70};
Definition: tmouse.h:6
Definition: tnclass.h:16
bool iconChange
Definition: tnclass.h:63
Telnet()
Definition: tnclass.cpp:100
int SwitchKeyMap(int)
Definition: tnclass.cpp:149
TelThreadParams ThreadParams
Definition: tnclass.h:55
Tnclip Clipboard
Definition: tnclass.h:56
void DoInit()
Definition: tnclass.cpp:63
HWND hConsoleWindow
Definition: tnclass.h:61
int Resume()
Definition: tnclass.cpp:259
volatile int bNetFinished
Definition: tnclass.h:44
TTelnetHandler TelHandler
Definition: tnclass.h:54
int Close()
Definition: tnclass.cpp:226
volatile int bConnected
Definition: tnclass.h:41
void NewProcess()
Definition: tnclass.cpp:360
SOCKET Socket
Definition: tnclass.h:38
LPARAM oldBIcon
Definition: tnclass.h:62
TCharmap Charmap
Definition: tnclass.h:50
volatile int bNetFinish
Definition: tnclass.h:45
TANSIParser Parser
Definition: tnclass.h:59
volatile int bWinsockUp
Definition: tnclass.h:42
int LoadKeyMap(const char *file, const char *name)
Definition: tnclass.cpp:139
HANDLE hThread
Definition: tnclass.h:65
void telSetConsoleTitle(const char *szHost)
Definition: tnclass.cpp:353
LPARAM oldSIcon
Definition: tnclass.h:62
SOCKET Connect()
Definition: tnclass.cpp:298
TConsole Console
Definition: tnclass.h:53
~Telnet()
Definition: tnclass.cpp:125
KeyTranslator KeyTrans
Definition: tnclass.h:51
TMouse Mouse
Definition: tnclass.h:57
TMapLoader MapLoader
Definition: tnclass.h:52
HANDLE hProcess
Definition: tnclass.h:66
char strPort[32]
Definition: tnclass.h:39
char szHost[127]
Definition: tnclass.h:40
void SetLocalAddress(SOCKET s)
Definition: tnclass.cpp:370
TNetwork Network
Definition: tnclass.h:49
void DisplayKeyMap()
Definition: tnclass.cpp:145
TScroller Scroller
Definition: tnclass.h:58
volatile int bNetPaused
Definition: tnclass.h:43
Definition: tnclip.h:6
GLdouble s
Definition: gl.h:2039
#define Open
Definition: syshdrs.h:62
Definition: fci.c:127
Definition: name.c:39
LONG_PTR LPARAM
Definition: windef.h:208
UINT_PTR SOCKET
Definition: winsock.h:47