mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 05:20:54 +00:00
c98929fa7e
svn path=/trunk/; revision=2458
51 lines
1,005 B
C++
51 lines
1,005 B
C++
#ifndef __TTELHNDL_H
|
|
#define __TTELHNDL_H
|
|
|
|
#include "tparser.h"
|
|
#include "tnetwork.h"
|
|
|
|
DWORD telProcessNetwork(LPVOID pvParams);
|
|
|
|
class TTelnetHandler {
|
|
private:
|
|
int iTermSet;
|
|
int bInBinaryRx, bInBinaryTx;
|
|
int bInEchoTx, bInEchoRx;
|
|
int iWillSGA;
|
|
|
|
void init();
|
|
|
|
int escapeIAC(char *buf, int length);
|
|
|
|
// Paul Brannan 5/15/98
|
|
void SendIAC(char c);
|
|
void SendIAC(char c1, char c2);
|
|
void SendIACParams(char c);
|
|
void SendIACParams(char c1, char c2);
|
|
void print_telopt(const char *s, int d);
|
|
|
|
TNetwork &Network;
|
|
TConsole &Console;
|
|
TParser &Parser;
|
|
|
|
char* ParseBuffer(char* pszBuffer, char* pszBufferEnd);
|
|
char* ParseIAC(char* pszBuffer, char* pszBufferEnd);
|
|
|
|
// Paul Brannan 9/13/98
|
|
char *szBuffer, *tmpBuffer;
|
|
char *ansiBufferStart, *ansiBufferEnd;
|
|
int dwBuffer;
|
|
|
|
void do_naws(int width, int height);
|
|
|
|
public:
|
|
TTelnetHandler(TNetwork &RefNetwork, TConsole &RefConsole,
|
|
TParser &RefParser);
|
|
~TTelnetHandler();
|
|
|
|
DWORD Go(LPVOID pvParams);
|
|
|
|
int get_term() {return iTermSet;}
|
|
};
|
|
|
|
#endif
|