Commit e3df55ed266e64b0c487faedd7da59584dc00792
1 parent
c8353570
Exists in
master
and in
5 other branches
Limpando fontes
Showing
1 changed file
with
0 additions
and
78 deletions
Show diff stats
src/lib3270/telnet.c
... | ... | @@ -115,76 +115,11 @@ |
115 | 115 | #define BUFSZ 16384 |
116 | 116 | #define TRACELINE 72 |
117 | 117 | |
118 | -/* Globals */ | |
119 | -// char *hostname = CN; | |
120 | -// time_t ns_time; | |
121 | -//int ns_brcvd; | |
122 | -//int ns_rrcvd; | |
123 | -//int ns_bsent; | |
124 | -//int ns_rsent; | |
125 | -// unsigned char *obuf; /* 3270 output buffer */ | |
126 | -// unsigned char *obptr = (unsigned char *) NULL; | |
127 | -//int linemode = 1; | |
128 | - | |
129 | -/* | |
130 | -#if defined(LOCAL_PROCESS) | |
131 | -Boolean local_process = False; | |
132 | -#endif | |
133 | -// char *termtype; | |
134 | -*/ | |
135 | - | |
136 | -/* Externals */ | |
137 | -// extern struct timeval ds_ts; | |
138 | - | |
139 | -/* Statics */ | |
140 | -// static int sock = -1; /* active socket */ | |
141 | - | |
142 | -//#if defined(HAVE_LIBSSL) /*[*/ | |
143 | -//static unsigned long last_ssl_error = 0; | |
144 | -//#endif | |
145 | - | |
146 | -//#if defined(_WIN32) /*[*/ | |
147 | -//static HANDLE sock_handle = NULL; | |
148 | -//#endif /*]*/ | |
149 | - | |
150 | -// static unsigned char myopts[LIB3270_TELNET_N_OPTS], hisopts[LIB3270_TELNET_N_OPTS]; | |
151 | - | |
152 | -/* telnet option flags */ | |
153 | -// static unsigned char *ibuf = (unsigned char *) NULL; | |
154 | -// static int ibuf_size = 0; /* size of ibuf */ | |
155 | - | |
156 | -/* 3270 input buffer */ | |
157 | -// static unsigned char *ibptr; | |
158 | -// static unsigned char *obuf_base = (unsigned char *)NULL; | |
159 | -// static int obuf_size = 0; | |
160 | -// static unsigned char *netrbuf = (unsigned char *)NULL; | |
161 | - | |
162 | -/* network input buffer */ | |
163 | -// static unsigned char *sbbuf = (unsigned char *)NULL; | |
164 | - | |
165 | -/* telnet sub-option buffer */ | |
166 | -// static unsigned char *sbptr; | |
167 | -// static unsigned char telnet_state; | |
168 | -// static char ttype_tmpval[13]; | |
169 | - | |
170 | 118 | #if defined(X3270_TN3270E) |
171 | 119 | #define E_OPT(n) (1 << (n)) |
172 | 120 | #endif // X3270_TN3270E |
173 | 121 | |
174 | -//#if defined(X3270_TN3270E) | |
175 | -//static unsigned long e_funcs; /* negotiated TN3270E functions */ | |
176 | -//static unsigned short e_xmit_seq; /* transmit sequence number */ | |
177 | -//static int response_required; | |
178 | -//#endif | |
179 | - | |
180 | 122 | #if defined(X3270_ANSI) /*[*/ |
181 | -//static int ansi_data = 0; | |
182 | -// static unsigned char *lbuf = (unsigned char *)NULL; | |
183 | -/* line-mode input buffer */ | |
184 | -// static unsigned char *lbptr; | |
185 | -// static int lnext = 0; | |
186 | -// static int backslashed = 0; | |
187 | -//static int t_valid = 0; | |
188 | 123 | static char vintr; |
189 | 124 | static char vquit; |
190 | 125 | static char verase; |
... | ... | @@ -195,19 +130,6 @@ static char vrprnt; |
195 | 130 | static char vlnext; |
196 | 131 | #endif /*]*/ |
197 | 132 | |
198 | -// static int tn3270e_negotiated = 0; | |
199 | -//static enum { E_NONE, E_3270, E_NVT, E_SSCP } tn3270e_submode = E_NONE; | |
200 | -// static int tn3270e_bound = 0; | |
201 | -// static char plu_name[BIND_PLU_NAME_MAX+1]; | |
202 | -// static char **lus = (char **)NULL; | |
203 | -// static char **curr_lu = (char **)NULL; | |
204 | -//static char *try_lu = CN; | |
205 | - | |
206 | -// static int proxy_type = 0; | |
207 | -// static char *proxy_host = CN; | |
208 | -//static char *proxy_portname = CN; | |
209 | -// static unsigned short proxy_port = 0; | |
210 | - | |
211 | 133 | static int telnet_fsm(H3270 *session, unsigned char c); |
212 | 134 | static void net_rawout(H3270 *session, unsigned const char *buf, size_t len); |
213 | 135 | static void check_in3270(H3270 *session); | ... | ... |