#include "curl_setup.h"
#include "urldata.h"
#include <curl/curl.h>
#include "transfer.h"
#include "sendf.h"
#include "telnet.h"
#include "connect.h"
#include "progress.h"
#include "system_win32.h"
#include "arpa_telnet.h"
#include "select.h"
#include "strcase.h"
#include "warnless.h"
#include "curl_printf.h"
#include "curl_memory.h"
#include "memdebug.h"
Go to the source code of this file.
|
static CURLcode | check_telnet_options (struct connectdata *conn) |
|
static CURLcode | init_telnet (struct connectdata *conn) |
|
static void | negotiate (struct connectdata *) |
|
static void | printoption (struct Curl_easy *data, const char *direction, int cmd, int option) |
|
static void | printsub (struct Curl_easy *data, int direction, unsigned char *pointer, size_t length) |
|
static void | rec_do (struct connectdata *conn, int option) |
|
static void | rec_dont (struct connectdata *conn, int option) |
|
static void | rec_will (struct connectdata *conn, int option) |
|
static void | rec_wont (struct connectdata *conn, int option) |
|
static void | send_negotiation (struct connectdata *, int cmd, int option) |
|
static CURLcode | send_telnet_data (struct connectdata *conn, char *buffer, ssize_t nread) |
|
static void | sendsuboption (struct connectdata *conn, int option) |
|
static void | set_local_option (struct connectdata *, int cmd, int option) |
|
static void | set_remote_option (struct connectdata *, int cmd, int option) |
|
static void | suboption (struct connectdata *) |
|
static CURLcode | telnet_do (struct connectdata *conn, bool *done) |
|
static CURLcode | telnet_done (struct connectdata *conn, CURLcode, bool premature) |
|
static CURLcode | telrcv (struct connectdata *, const unsigned char *inbuf, ssize_t count) |
|
#define CURL_SB_ACCUM |
( |
|
x, |
|
|
|
c |
|
) |
| |
Value: if(
x->subpointer < (
x->subbuffer +
sizeof x->subbuffer)) \
*
x->subpointer++ = (c); \
if(strcmp(arg,"1305")!=0)
TFSIMD_FORCE_INLINE const tfScalar & x() const
Definition at line 77 of file telnet.c.
#define CURL_SB_CLEAR |
( |
|
x | ) |
x->subpointer = x->subbuffer |
#define CURL_SB_GET |
( |
|
x | ) |
((*x->subpointer++)&0xff) |
#define CURL_SB_LEN |
( |
|
x | ) |
(x->subend - x->subpointer) |
#define CURL_SB_TERM |
( |
|
x | ) |
|
Value:do { \
x->subend =
x->subpointer;
\
TFSIMD_FORCE_INLINE const tfScalar & x() const
Definition at line 72 of file telnet.c.
#define startskipping |
( |
| ) |
|
Value: (char *)&inbuf[startwrite], \
} \
startwrite = -1
if(strcmp(arg,"1305")!=0)
UNITTEST_START int result
CURLcode Curl_client_write(struct connectdata *conn, int type, char *ptr, size_t len)
Value:if(startwrite < 0) \
startwrite = in
Enumerator |
---|
CURL_TS_DATA |
|
CURL_TS_IAC |
|
CURL_TS_WILL |
|
CURL_TS_WONT |
|
CURL_TS_DO |
|
CURL_TS_DONT |
|
CURL_TS_CR |
|
CURL_TS_SB |
|
CURL_TS_SE |
|
Definition at line 139 of file telnet.c.
static void printoption |
( |
struct Curl_easy * |
data, |
|
|
const char * |
direction, |
|
|
int |
cmd, |
|
|
int |
option |
|
) |
| |
|
static |
static void printsub |
( |
struct Curl_easy * |
data, |
|
|
int |
direction, |
|
|
unsigned char * |
pointer, |
|
|
size_t |
length |
|
) |
| |
|
static |
static void rec_do |
( |
struct connectdata * |
conn, |
|
|
int |
option |
|
) |
| |
|
static |
static void rec_dont |
( |
struct connectdata * |
conn, |
|
|
int |
option |
|
) |
| |
|
static |
static void rec_will |
( |
struct connectdata * |
conn, |
|
|
int |
option |
|
) |
| |
|
static |
static void rec_wont |
( |
struct connectdata * |
conn, |
|
|
int |
option |
|
) |
| |
|
static |
static void send_negotiation |
( |
struct connectdata * |
conn, |
|
|
int |
cmd, |
|
|
int |
option |
|
) |
| |
|
static |
static void sendsuboption |
( |
struct connectdata * |
conn, |
|
|
int |
option |
|
) |
| |
|
static |
static void set_local_option |
( |
struct connectdata * |
conn, |
|
|
int |
cmd, |
|
|
int |
option |
|
) |
| |
|
static |
static void set_remote_option |
( |
struct connectdata * |
conn, |
|
|
int |
cmd, |
|
|
int |
option |
|
) |
| |
|
static |
Initial value:= {
"TELNET",
}
static CURLcode telnet_do(struct connectdata *conn, bool *done)
#define PROTOPT_NOURLQUERY
static CURLcode telnet_done(struct connectdata *conn, CURLcode, bool premature)
Definition at line 180 of file telnet.c.