MityDSP Documentation Index

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

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

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

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

Internal to the server. Maintains the login state.

last state while not escaped

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

Internal to the server. Counts login attempts.

Username supplied during login

Password supplied during login

Internal to the server. TCP socket for this connection

struct sockaddr_in tsTelnetConn::client_saddr [read]

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

subnegotiation string length

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.

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 Wed Mar 17 18:24:39 2010 for MityDSP Net by  Doxygen Version 1.6.1
Copyright © 2009, Critical Link LLC, All rights reserved.