MityDSP Documentation Index
Public Attributes
tsTelnetConn Struct Reference

#include <telnetd.h>

List of all members.

Public Attributes

bool in_use
bool echo
bool suppressGoAhead
int state
int last_unesc_state
int parse_pos
int login_attempt
char user [TELNET_MAX_USERNAME_LEN+1]
char pswd [TELNET_MAX_PASSWORD_LEN+1]
int socket
struct sockaddr_in client_saddr
unsigned char subnegstr [32]
unsigned char optioncmd
int subneglen
void * user1
void * user2

Detailed Description

This structure specifies a telnet client connection. Each connection will have a unique tsTelnetConn structure to define it. A pointer to the connection structure is passed in most functions in the tcTelnetd class.


Member Data Documentation

bool tsTelnetConn::in_use

Internal to the server. Set to true if the connection is in use.

bool tsTelnetConn::echo

Set to true if characters should be echoed back to the client. default is false

bool tsTelnetConn::suppressGoAhead

Set to true if go-ahead characters should be suppressed. default is true

int tsTelnetConn::state

Internal to the server. Maintains the login state.

int tsTelnetConn::last_unesc_state

last state while not escaped

int tsTelnetConn::parse_pos

Internal to the server. Maintains the parser position during login attempts.

int tsTelnetConn::login_attempt

Internal to the server. Counts login attempts.

char tsTelnetConn::user[TELNET_MAX_USERNAME_LEN+1]

Username supplied during login

char tsTelnetConn::pswd[TELNET_MAX_PASSWORD_LEN+1]

Password supplied during login

int tsTelnetConn::socket

Internal to the server. TCP socket for this connection

struct sockaddr_in tsTelnetConn::client_saddr

Telnet client IP address

unsigned char tsTelnetConn::subnegstr[32]

Internal to server. subnegotiation string

unsigned char tsTelnetConn::optioncmd

Internal to server. RFC 854 option command

int tsTelnetConn::subneglen

subnegotiation string length

void* tsTelnetConn::user1

The user1 parameter specified in the tsTelnetdParams structure passed into the tcTelnetd::run function. This parameter is common to all connections on this telnet server. Typically an application might use this to point to its command shell object or an application specific data structure.

void* tsTelnetConn::user2

Application provided parameter. The telnet server does not use this parameter except to pass back to the application. Typically this will be used to reference back to a application class or structure. This parameter will be NULL when the tfTelnetConnect callback is called. Typically at that point the application will set this parameter for future reference. This parameter is unique for all connections on this telnet server. Typically an application might use this to point to its command shell connection object or an application specific data structure.


  
Generated on Mon Apr 22 2013 11:33:33 for MityDSP Net by  Doxygen Version 1.8.1.1
Copyright © 2009, Critical Link LLC, All rights reserved.