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

telnetd.h File Reference
#include <stdio.h>
#include <winsock2.h>
#include <tchar.h>
#include <time.h>

Go to the source code of this file.

Data Structures

struct  client_t

Defines

#define _CRT_SECURE_NO_WARNINGS
#define WIN32_NO_STATUS
#define TELNET_PORT   (23)
#define BUFSIZE   (4096)
#define USERID_SIZE   (64)
#define CTRLC   (3)
#define BS   (8)
#define CR   (13)
#define LF   (10)
#define DEL   (127)
#define IAC   "\xff"
#define DONT   "\xfe"
#define WONT   "\xfc"
#define WILL   "\xfb"
#define DO   "\xfd"
#define SB   "\xfa"
#define SE   "\xf0"
#define ECHO   "\x01"
#define SUPPRESS_GO_AHEAD   "\x03"
#define TERMINAL_TYPE   "\x18"
#define NAWS   "\x1f"
#define LINEMODE   "\x22"
#define NEWENVIRON   "\x27"
#define MODE   "\x01"
#define HANDSHAKE_TIMEOUT   (3)

Enumerations

enum  EchoMode { NoEcho = 0, Echo = 1, Password = 2 }

Functions

static BOOL WINAPI Cleanup (DWORD dwControlType)
static void WaitForConnect (void)
static BOOLEAN StartSocketInterface (void)
static void CreateSocket (void)
static void UserLogin (int client_socket)
static DWORD WINAPI UserLoginThread (LPVOID)
static int DoTelnetHandshake (int sock)
static int ReceiveLine (int sock, char *buffer, int len, EchoMode echo)
static void RunShell (client_t *client)
static DWORD WINAPI MonitorChildThread (LPVOID)
static DWORD WINAPI WriteToPipeThread (LPVOID)
static DWORD WINAPI ReadFromPipeThread (LPVOID)
static void TerminateShell (client_t *client)
static VOID ErrorExit (LPTSTR)
int kickoff_telnetd (void)

Generated on Sun May 27 2012 04:44:46 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.